How to write a midi output?


#1

I have try this demo project
https://www.juce.com/doc/tutorial_handling_midi_events
and I use midi monitor to observe midi event
but it seems can’t output midi data
is it possible to write a midioutput in this project let it send the midi data?

Could someone help me?
Thanks!!


#2

Take a look at the MidiOutput class. You can get the available devices using the getDevices() method and then open one of these by calling openDevice() which will return a pointer to a MidiOutput object that you can call sendMessageNow() on to send MIDI messages.