MIDI Voice counting -question
Hi
I need to count Midi voices played in my new JS plugin. I have counter, which count number of active voices. I need all MIDI messages which can change it:
Note on: counter +=1
Note off, or Note on with 0 velocity: counter -=1
All midi notes off: counter =0;
All midi sounds off: counter=0;
that's all?
Is there any method to check, if when switching on the plugin some note has been already started and is playing now?
|