#include <MetaGenericEvent.h>
Inherits MIDI::MetaEvent.
Public Member Functions | |
MetaGenericEvent () | |
Default constructor. | |
MetaGenericEvent (const MetaGenericEvent &o) | |
Copy constructor. | |
MetaGenericEvent (dword deltaTime, byte metaType, byte data[], int dataLength) | |
Constructor. | |
MetaGenericEvent (dword deltaTime, byte metaType, int dataLength) | |
Constructor. | |
int | dataLength () |
int | paramInt (unsigned int id) |
unsigned int | paramUInt (unsigned int id) |
void | setParam (unsigned int id, byte value) |
virtual DataBuffer | data () |
virtual void | debug () |
Prints debug information. |
This class represents a generic meta event.
A generic meta event contains byte long data that can be accessed by some index.
This represents all events not represented by specific classes.
Definition at line 39 of file MetaGenericEvent.h.
MIDI::MetaGenericEvent::MetaGenericEvent | ( | ) |
Default constructor.
Definition at line 33 of file MetaGenericEvent.cpp.
MIDI::MetaGenericEvent::MetaGenericEvent | ( | const MetaGenericEvent & | o | ) |
Copy constructor.
Definition at line 37 of file MetaGenericEvent.cpp.
MIDI::MetaGenericEvent::MetaGenericEvent | ( | dword | deltaTime, | |
byte | metaType, | |||
byte | data[], | |||
int | dataLength | |||
) |
Constructor.
deltaTime | ||
metaType | ||
data | Data that will be initialized | |
data | Length Number of data pieces |
Definition at line 47 of file MetaGenericEvent.cpp.
Constructor.
Initializes with null data
deltaTime | ||
metaType | ||
data | Length Number of data pieces that will exist |
Definition at line 57 of file MetaGenericEvent.cpp.
DataBuffer MIDI::MetaGenericEvent::data | ( | ) | [virtual] |
Reimplemented from MIDI::MetaEvent.
Definition at line 87 of file MetaGenericEvent.cpp.
int MIDI::MetaGenericEvent::dataLength | ( | ) |
Definition at line 67 of file MetaGenericEvent.cpp.
void MIDI::MetaGenericEvent::debug | ( | ) | [virtual] |
Prints debug information.
Reimplemented from MIDI::MetaEvent.
Definition at line 100 of file MetaGenericEvent.cpp.
int MIDI::MetaGenericEvent::paramInt | ( | unsigned int | id | ) |
Allows access to data as if it were stored as a signed integer.
id | The id of the data |
Definition at line 72 of file MetaGenericEvent.cpp.
unsigned int MIDI::MetaGenericEvent::paramUInt | ( | unsigned int | id | ) |
Allows access to data as if it were stores as an unsigned integer.
id | The id of the data |
Definition at line 77 of file MetaGenericEvent.cpp.
void MIDI::MetaGenericEvent::setParam | ( | unsigned int | id, | |
byte | value | |||
) |
Set parameter to byte
id | The id of the data | |
value | What to save |
Definition at line 82 of file MetaGenericEvent.cpp.