I’m thinking that it would be useful to have a constructor for MidiBuffer that take a single MidiMessage e.g.:
which probably just calls
or similar, with a sampleNumber=0. You could then do something like:
midiOutput->sendBlockOfMessages(midiBuffer, Time::getMillisecondCounter(), 44100);
Obviously you’d commonly have more than one message in a MidiBuffer but for simple cases like this using the MidiOutput background thread it might be useful and simple add?