OutputUnit
An OutputUnit represents a way of sending MIDI messages to the
synthesizer, or other output device. OutputUnit is a
class which the ScorePlayer uses to
play the MIDI_msgs in the Score. To simply
send the messages out using 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()
- This creates a new OutputUnit.
~OutputUnit()
- This destroys the OutputUnit.
void write(MIDI_msg m)
- This sends the MIDI message m to the synthesizer using
oap->write().
Meta events are
not actually sent to the synthesizer.
void write(MIDI_msg m, int n)
- This calls the
write() method of the OutputUnit n
times with message m.
Modified 15 January 1996 pepellet@mit.edu