hope someone can help me. I want to make an arpeggiator inside a plugin synth and it would be great if i can send the midi events to the host. The idea is that the user can record the plugin generated arpeggiator midi output within the host.
I read in other posts that i can send Midi events to the host by adding midi events to the MidiBuffer in processBlock. Something like this:
void processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
MidiMessage midiMessage = MidiMessage::noteOn(1, 100, (uint8)100); // edit
// midiMessage.noteOn(1, 100, (uint8)100); // edit
I would expect that the host would record the noteOn event at every buffer if i run the code above, but it didnt. I also didnt clear the MidiBuffer in previous plugins and it looks that the host does not process those events too. Think i really missed something. Can someone tell me how this Midi Out works and how i can send midi to the host for recording?