Midi Parser
A simple library that reads and parses binary MIDI files
|
Contains header data of the Midi file. More...
#include <HeaderChunk.h>
Public Member Functions | |
HeaderChunk (const char *filePath) | |
MidiType::FileFormat | getFormat () const |
uint16_t | getNTracks () const |
uint16_t | getDivision () const |
Public Member Functions inherited from BaseChunk | |
BaseChunk (const char *filePath, long addr) | |
BaseChunk (const BaseChunk &chunk) | |
~BaseChunk () | |
char * | getName () const |
int | getLength () const |
long | getByteLength () const |
Protected Attributes | |
uint8_t | format |
uint16_t | nTracks |
uint16_t | division |
Protected Attributes inherited from BaseChunk | |
char * | name {} |
uint32_t | length {} |
long | byteLength {} |
Contains header data of the Midi file.
|
explicit |
uint16_t HeaderChunk::getDivision | ( | ) | const |
Returns the time division of the Midi file
MidiType::FileFormat HeaderChunk::getFormat | ( | ) | const |
Returns the format of the file
uint16_t HeaderChunk::getNTracks | ( | ) | const |
Returns number of tracks in the Midi file