Well, if you start scripting, this is the Scriptlet version with the rescale function in it:
On ControlChangeEvent(m : ControlChangeMessage) Matching 64
Var CCValue : integer = m.GetCCValue();
rescaledCCValue : integer;
if (CCValue > 0)
then
rescaledCCValue = ScaleInt(CCValue, 80, 127, 0, 127);
SendNow(MakeControlChangeMessage(64, rescaledCCValue));
end
End
It it works for you, as I explained earlier, you can rather use the a gig script for that:
var
LGPP : MidiInDeviceAlias
On ControlChangeEvent(m : ControlChangeMessage) Matching 64 from LGPP
Var CCValue : integer = m.GetCCValue();
rescaledCCValue : integer;
if (CCValue > 0)
then
rescaledCCValue = ScaleInt(CCValue, 80, 127, 0, 127);
InjectMidiEventViaRigManager(LGPP, WithCCValue(m, rescaledCCValue));
end
End
Replace LGPP by the MIDI port alias defined in Rig Manager for the MIDI port where your sustain pedal is.
Orā¦ buy a good working sustain pedal