|
Arduino MIDI File Parser
|
Midi File parser. Provide the data via write: You should try to keep the buffer as full as possible while parsing. You get the next parsing result by calling the parse() method. More...
#include <MidiFileParser.h>


Public Member Functions | |
| bool | begin (bool log=true, int bufferSize=MIDI_BUFFER_SIZE) |
| Initializes & starts the processing. | |
| size_t | write (uint8_t c) override |
| virtual size_t | write (const uint8_t *data, size_t len) |
| Feed/Provide the midi data to the parser. | |
| int | availableForWrite () |
| Max number of bytes that we can write. | |
| midi_parser_state & | parse () |
| Parse data in order to provide the next midi element. | |
| midi_parser_state & | parseTimed () |
| operator bool () | |
| Returns false after an error or when all data has been consumed. | |
| void | end () |
| Ends the processing: currently does nothing. | |
| const char * | midi_status_name (int status) |
| Provides the string description for the midi_status value. | |
| const char * | midi_file_format_name (int fmt) |
| Provides the string description for the file format. | |
| const char * | midi_meta_name (int type) |
| Provides the string description for the midi_meta value. | |
Protected Attributes | |
| friend | MidiFileParserMultiTrack |
| bool | log_active = false |
| int | write_len = 256 |
| midi_parser_state | parser_state |
| bool | is_ok = true |
| int | track_no = 0 |
| midi_parser_state | not_ready {MIDI_PARSER_DELAY} |
| midi_parser_state | eob {MIDI_PARSER_EOB} |
Midi File parser. Provide the data via write: You should try to keep the buffer as full as possible while parsing. You get the next parsing result by calling the parse() method.
|
inline |
Parse data in order to provide the next midi element considering the times.