TSE3::MidiEvent Struct Reference
A MidiCommand with associated Clock scheduling time and possible ballancing MidiCommand_NoteOff.
More...
#include <Midi.h>
Collaboration diagram for TSE3::MidiEvent:
[legend]List of all members.
Detailed Description
A MidiCommand with associated Clock scheduling time and possible ballancing MidiCommand_NoteOff.
The MidiEvent is a special kind of event, since any MidiCommand_NoteOn that is sent must be ballanced by a matching MidiCommand_NoteOff to prevent 'hanging notes'.
To facilitate this, this class wraps two MidiCommand events together. The second is only used if the first is a MidiCommand_NoteOn and will always be a ballancing MidiCommand_NoteOff.
(The MidiEvent class contents are not Event<MidiCommand>s because the syntax becomes cumbersome.)
When you create a MidiEvent which contains a MidiCommand_NoteOn you will generally always want to fill in the second MidiCommand's details to be the matching MidiCommand_NoteOff. You will only not honour this in the case where there is no relevant matching note off. This is explained in more detail in the documentation for the PhraseEdit class.
- Author:
- Pete Goodliffe
- Version:
- 3.01
- See also:
- MidiCommand
Constructor & Destructor Documentation
TSE3::MidiEvent::MidiEvent |
( |
|
) |
[inline] |
|
Member Function Documentation
int TSE3::MidiEvent::operator< |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
int TSE3::MidiEvent::operator<= |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
|
This comparison operator only compares event times, NOT the data contents. |
int TSE3::MidiEvent::operator> |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
int TSE3::MidiEvent::operator>= |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
|
This comparison operator only compares event times, NOT the data contents. |
int TSE3::MidiEvent::operator== |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
|
This comparison operator only compares event times, NOT the data contents. |
int TSE3::MidiEvent::operator!= |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
|
This comparison operator only compares event times, NOT the data contents. |
bool TSE3::MidiEvent::equals |
( |
const MidiEvent & |
e |
) |
const [inline] |
|
|
Compares two Events for equality, checking both the times and the data. |
Member Data Documentation
The documentation for this struct was generated from the following file:
- /home/pete/Work/TSE3.svn/tse3/src/tse3/Midi.h
Generated on Wed May 25 14:46:24 2005 for TSE3 by
1.3.2