View Single Post
Old 03-02-2018, 04:20 PM   #1
RichB74
Human being with feelings
 
Join Date: Mar 2018
Posts: 3
Default Using IMidiQueue for MIDI output only

I'm trying to make a plugin that generates MIDI CC without any MIDI input, but generates MIDI data based on audio volume. It works fine when I limit the CC data to one PDR block, but I'm struggling to get get an IMidiQueue to output MIDI data at better resolution than one block.

Does anyone have a snippet of code that shows how to send out the MIDI data added to an IMidiQueue such that the data is sent 'during' each audio processing block? - not too bothered if the data is sent a block late - it's only MIDI after all

I don't think ProcessMidiMsg will help here, as it deals with incoming MIDI messages.

Putting it in ProcessDoubleReplacing would probably be OK from a performance point of view for this application, but everything I have tried so far has failed - all messages are still sent at the block rate.

Any ideas? - thanks
RichB74 is offline   Reply With Quote