This class represents channel events. More...
#include <ChannelEvent.h>
Inherits MIDI::Event.
Inherited by MIDI::ChannelControllerEvent.
Public Member Functions | |
ChannelEvent () | |
Default Constructor. | |
ChannelEvent (const ChannelEvent &o) | |
Copy Constructor. | |
ChannelEvent (dword timeDelta, byte command, int channel, int param1, int param2) | |
Constructor. | |
EventType | type () |
byte | command () |
int | channel () |
int | param1 () |
int | param2 () |
virtual DataBuffer | data (bool shorten=false) |
virtual void | debug () |
Prints out information about this event. Is for debug purposes. |
This class represents channel events.
Channel events are events that are send to the synthesizer.
Each channel event has 4 fields:
Definition at line 41 of file ChannelEvent.h.
MIDI::ChannelEvent::ChannelEvent | ( | ) |
Default Constructor.
Definition at line 33 of file ChannelEvent.cpp.
MIDI::ChannelEvent::ChannelEvent | ( | const ChannelEvent & | o | ) |
Copy Constructor.
Definition at line 37 of file ChannelEvent.cpp.
MIDI::ChannelEvent::ChannelEvent | ( | dword | timeDelta, | |
byte | command, | |||
int | channel, | |||
int | param1, | |||
int | param2 | |||
) |
Constructor.
Definition at line 41 of file ChannelEvent.cpp.
int MIDI::ChannelEvent::channel | ( | ) |
Definition at line 55 of file ChannelEvent.cpp.
byte MIDI::ChannelEvent::command | ( | ) |
Command that this event represents. See MIDI specification for a complete list of possible values.
Definition at line 50 of file ChannelEvent.cpp.
DataBuffer MIDI::ChannelEvent::data | ( | bool | shorten = false |
) | [virtual] |
shorten | Whether to not include the command and channel |
Definition at line 70 of file ChannelEvent.cpp.
void MIDI::ChannelEvent::debug | ( | ) | [virtual] |
Prints out information about this event. Is for debug purposes.
Reimplemented from MIDI::Event.
Reimplemented in MIDI::ChannelControllerEvent.
Definition at line 87 of file ChannelEvent.cpp.
int MIDI::ChannelEvent::param1 | ( | ) |
Definition at line 60 of file ChannelEvent.cpp.
int MIDI::ChannelEvent::param2 | ( | ) |
Definition at line 65 of file ChannelEvent.cpp.
EventType MIDI::ChannelEvent::type | ( | ) | [virtual] |
Implements MIDI::Event.
Definition at line 45 of file ChannelEvent.cpp.