Contains data of the Midi event.
More...
#include <MidiEvent.h>
|
uint8_t | status {} |
|
uint16_t | data {} |
|
uint8_t | byteLength {} |
|
|
static uint8_t | lastStatus {0} |
|
Contains data of the Midi event.
Contains the data of the Midi event and provides the methods to retrieve it
◆ MidiEvent()
MidiEvent::MidiEvent |
( |
const char * |
filePath, |
|
|
long |
addr |
|
) |
| |
Reads the Midi file and constructs the event object
- Parameters
-
filePath | Path to the Midi file |
addr | Address of the event in bytes |
◆ ~MidiEvent()
MidiEvent::~MidiEvent |
( |
| ) |
|
|
overridedefault |
Destroys the event object
◆ clone()
Clones the event object
- Returns
- Pointer to the cloned event
Implements Event.
◆ getChannel()
uint8_t MidiEvent::getChannel |
( |
| ) |
const |
Returns the channel of the message
- Returns
- Channel number
◆ getData()
uint16_t MidiEvent::getData |
( |
| ) |
const |
Returns event data
- Returns
- Data of the event
◆ getNote()
uint8_t MidiEvent::getNote |
( |
| ) |
const |
Returns note number for Note on/off events
- Returns
- Number of the note for note events, otherwise 0
◆ getStatus()
Returns the event status
- Returns
- The status of the event
◆ getType()
Returns the type of the event
- Returns
- Event type. Always equals to MidiType::EventType::MidiEvent
Implements Event.
◆ getVelocity()
uint8_t MidiEvent::getVelocity |
( |
| ) |
const |
Returns note velocity for Note on/off events
- Returns
- Velocity of the note for note events, otherwise 0. Velocity of 0 means Note off
The documentation for this class was generated from the following files: