To have an upper limit on how many new notes can be triggered in every audio buffer, We should probably limit the number of midi messages in the ProcessData (or whatever form it survives in) to some reasonable number.
We could then have a separate ringbuffer for unsent midi-messages, that are waiting until the next audio buffer starts.
To have an upper limit on how many new notes can be triggered in every audio buffer, We should probably limit the number of midi messages in the ProcessData (or whatever form it survives in) to some reasonable number.
We could then have a separate ringbuffer for unsent midi-messages, that are waiting until the next audio buffer starts.