I would like to be able to do trills on my midi keyboard like I do on an analog synth : keeping one key pressed down while only pushing the second one. Since it is an analogsynth, the ouput voltage changes when I release the trilling key, but a midi note beeing a one shot message, I can't achieve the same result. I tried to find another midi controller that would send continuous messages as long as a key is depressed but couldn't find one. Aftertouch would be good for that I suppose, but it needs some pressure not compatible with natural playing. Anyway, I tried to alternatively write on the two indexes of an array with the hope that I could somehow get the tabread object to go back to the previous note, but since there is no way of checking if a continuous message is sent, there is no way to tell PD to stop writing at say index 0 because that note is held, just write index 1 and alternate reading from 0 to 1 if that makes sense.
I tried to analyse the miniwoog patch to see if I could find a solution in there somewhere as it seems to support all kind of note priority and legato mode but couldn't find anything that I would understand.
Here is the patch :
Thank you for any help.