Midi Parser
A simple library that reads and parses binary MIDI files
|
Contains data of the System Exclusive event. More...
#include <SysExEvent.h>
Public Member Functions | |
SysExEvent ()=default | |
SysExEvent (const char *filePath, long addr) | |
~SysExEvent () override | |
SysExEvent * | clone () const override |
MidiType::EventType | getType () const override |
MidiType::SysExMessageStatus | getStatus () const |
uint8_t | getLength () const |
uint8_t * | getData () const |
Public Member Functions inherited from Event | |
virtual | ~Event ()=default |
uint8_t | getByteLength () const |
Protected Attributes | |
uint8_t | status {} |
uint8_t | length {} |
uint8_t * | data {} |
Protected Attributes inherited from Event | |
uint8_t | byteLength {} |
Contains data of the System Exclusive event.
Contains the data of the System Exclusive event and provides the methods to retrieve it
|
default |
Default constructor
SysExEvent::SysExEvent | ( | const char * | filePath, |
long | addr | ||
) |
Reads the Midi file and constructs the event object
filePath | File path to read the data from |
addr | Address of the event in bytes |
|
override |
Destroys the event object
|
overridevirtual |
uint8_t * SysExEvent::getData | ( | ) | const |
Returns the event data
uint8_t SysExEvent::getLength | ( | ) | const |
Returns event data length
MidiType::SysExMessageStatus SysExEvent::getStatus | ( | ) | const |
Returns the event status
|
overridevirtual |