An event inside a track. More...
#include <Event.h>
Inherited by MIDI::ChannelEvent, and MIDI::MetaEvent.
Public Member Functions | |
dword | deltaTime () |
virtual EventType | type ()=0 |
virtual DataBuffer | data () |
virtual void | debug () |
Prints out information about this event. Is for debug purposes. | |
Protected Member Functions | |
Event () | |
Empty constructor. | |
Event (const Event &o) | |
Copy constructor. | |
Event (dword deltaTime) | |
Contructor. |
An event inside a track.
A MIDI track is made out of events. This class is an abstract event.
There are three types of events
Each event contains a "delta time" field. This is the number of ticks to wait after the previous event before this event is executed. A delta time of 0 means that this event is to be executed as the same time as the previous event. See MIDIHeader for how long each tick is.
Definition at line 52 of file Event.h.
MIDI::Event::Event | ( | const Event & | o | ) | [protected] |
MIDI::Event::Event | ( | dword | deltaTime | ) | [protected] |
DataBuffer MIDI::Event::data | ( | ) | [virtual] |
Reimplemented in MIDI::MetaEvent, MIDI::MetaGenericEvent, MIDI::MetaNumberEvent, and MIDI::MetaTextEvent.
void MIDI::Event::debug | ( | ) | [virtual] |
Prints out information about this event. Is for debug purposes.
Reimplemented in MIDI::ChannelControllerEvent, MIDI::ChannelEvent, MIDI::MetaEvent, MIDI::MetaGenericEvent, MIDI::MetaNumberEvent, and MIDI::MetaTextEvent.
dword MIDI::Event::deltaTime | ( | ) |
virtual EventType MIDI::Event::type | ( | ) | [pure virtual] |
Implemented in MIDI::ChannelEvent, and MIDI::MetaEvent.