MD_MIDIFile Standard MIDI File Processing 2.6
Library to play Standard MIDI Files (SMF)
|
Main file for helper functions implementation. More...
Functions | |
uint32_t | readMultiByte (SDFILE *f, uint8_t nLen) |
uint32_t | readVarLen (SDFILE *f) |
Main file for helper functions implementation.
uint32_t readMultiByte | ( | SDFILE * | f, |
uint8_t | nLen | ||
) |
Read a multi byte value from the input stream
SMF contain numbers that are fixed length. This function reads these from the input file.
*f | pointer to SDFile object to use for reading. |
nLen | one of MB_LONG, MB_TRYTE, MB_WORD, MB_BYTE to specify the number of bytes to read. |
uint32_t readVarLen | ( | SDFILE * | f | ) |
Read a variable length parameter from the input stream
SMF contain numbers that are variable length, with the last byte of the number identified with bit 7 set. This function reads these from the input file.
*f | pointer to SDFile object to use for reading. |