Smooth over Polyphonic Aftertouch?
I have use of an old Roland HPD-15 hand drum
It sends poly AT, but a couple pads tend to produce a couple jumps while ascending towards 127.
Does anyone know of existing JS effect that could compare current and previous values and smooth over this leap?
E.g. I send:
0,2,3,4,6,7,8,9,11,12,14,16,17,18,21,0,24,25,26,28, etc
And it replaces the 0 with the last number or blocks it based on some basic comparison
If I get to tackling this myself, does this sound like the simplest approach?:
Make an array containing all 128 MIDI note numbers
Take all incoming Poly AT messages and write their last value to the corresponding array entry, but only if the existing number passes my math check
Output the message, with or without adjustment, or block the message
|