Storage space for a timestamp assiciated with the MIDI message.
unsigned long date;
Storage space for one MIDI command message with up to 3 parameter
bytes which are accessed through functions p0 through p3.
uchar& p0(void);
The MIDI command byte for the MIDI message.
uchar& p1(void);
The first parameter byte for the command byte in p0.
Validity of parameter depends on MIDI command.
uchar& p2(void);
The second parameter byte for the command byte in p0.
Validity of parameter depends on MIDI command.
uchar& p3(void);
The third parameter byte for the command byte in p0.
Validity of parameter depends on MIDI command.
Other functions
MidiMessage(void);
Does nothing. Initial contents are undefined.
MidiMessage(int aCommand, int aP1, int aP2, int aTime = 0);
Sets the MIDI data and timestamp fields of object.
MidiMessage(const MidiMessage& aMessage);
Copies the data and timestamp of the given input message.
~MidiMessage();
Does nothing.
uchar& command(void);
Accesses the MIDI message command byte. Same behavior as
p0 function.
uchar getCommand(void) const;
Accesses the MIDI message command byte. Similar behavior as
the command function.
int getParameterCount(void) const;
Returns the number of valid parameters for the assiciated MIDI command
stored in p0. Returns -1 if MIDI command is invalid,
or the number of valid parameters is unknown
uchar getP0(void) const;
Accesses the MIDI message command byte. Similar behavior as
the p0 function.
uchar getP1(void) const;
Returns the first message parameter following the command byte
in the MIDI message. Similar behavior to p1.
uchar getP2(void) const;
Returns the second message parameter following the command byte
in the MIDI message. Similar behavior to p2.
uchar getP3(void) const;
Returns the third message parameter following the command byte
in the MIDI message. Similar behavior to p3.