I have a three-pedal controller with the sustain pedal having the ability to send continuous controller messages to instruments that respond to what is sometimes called half-pedaling.
This is great to have but this particular pedal gets a little twitchy.
I have been trying to come up with some rules that for instance:
PI (Pedal Input) is =<20 then nothing should be sent to the output just as if the pedal is not being pressed
If PI (Pedal Input) goes above 20 that would then act as if the pedal was engaged sending a value of 127
When the pedal is then released it should send a value of 0 to stop the notes from sounding.
So I am basically trying to convert a continuous controller to a more simple on-off toggle, I am just having trouble understanding how to approach the logic.
Thanks as always for the help.
Joyfully,
Simeon