|
Swadge ESP32-S2
2.0.0
APIs to develop for the Magfest Swadge
|
Contains information for a non-MIDI meta-event from a MIDI file.
#include <midiFileParser.h>
Data Fields | |
| metaEventType_t | type |
| The type of this MIDI meta-event. | |
| uint32_t | length |
| The number of data bytes this meta event contains. | |
| union { | |
| const char * | text |
Contains text data, when {type <= 0x0F}. | |
| const uint8_t * | data |
| Contains binary data, when type is PROPRIETARY. | |
| uint32_t | tempo |
| Contains a tempo, in microseconds per quarter note, when type is TEMPO. | |
| uint16_t | sequenceNumber |
| Contains a sequence number for this track, when type is SEQUENCE_NUMBER. | |
| uint8_t | prefix |
| Contains a channel or port prefix, when type is CHANNEL_PREFIX or PORT_PREFIX respectively. | |
| struct { | |
| uint8_t | hour |
| uint8_t | min |
| uint8_t | sec |
| uint8_t | frame |
| uint8_t | frameHundredths |
| } | startTime |
| Contains the start time of this track, when type is SMPTE_OFFSET. | |
| midiTimeSignature_t | timeSignature |
| Contains time signature data, when type is TIME_SIGNATURE. | |
| struct { | |
| uint8_t | flats |
| The number of flats in the key. | |
| uint8_t | sharps |
| The number of sharps in the key. | |
| bool | minor |
| True for a minor key, false for a major key. | |
| } | keySignature |
| Contains key signature data, when type is KEY_SIGNATURE. | |
| }; | |
| metaEventType_t type |
The type of this MIDI meta-event.
| uint32_t length |
The number of data bytes this meta event contains.
| union { ... } |