oap->write()
, use
OutputUnit itself as your OutputUnit. Or,
you can write your own subclass of OutputUnit and override the write()
method to provide more complicated
customized behavior.
class OutputUnit { public: OutputUnit(); virtual ~OutputUnit(); virtual void write(MIDI_msg); void write(MIDI_msg, int); };
OutputUnit()
~OutputUnit()
void write(MIDI_msg m)
oap->write()
.
Meta events are
not actually sent to the synthesizer.
void write(MIDI_msg m, int n)
write()
method of the OutputUnit n
times with message m.