MidiBuffer constructors request

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:

instead of:

MidiBuffer midiBuffer; midiBuffer.addEvent(MidiMessage::pitchWheel(1, pos),0); 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?

Sounds like a good request to me, and easy to do - I’ll check something in shortly…