Swadge ESP32-S2  2.0.0
APIs to develop for the Magfest Swadge
Loading...
Searching...
No Matches
midiMetaEvent_t.__unnamed0__ Union Reference

Data Fields

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.

Field Documentation

◆ text

Contains text data, when {type <= 0x0F}.

Warning
This data is NOT NUL-terminated

◆ data

Contains binary data, when type is PROPRIETARY.

◆ tempo

Contains a tempo, in microseconds per quarter note, when type is TEMPO.

◆ sequenceNumber

Contains a sequence number for this track, when type is SEQUENCE_NUMBER.

◆ prefix

Contains a channel or port prefix, when type is CHANNEL_PREFIX or PORT_PREFIX respectively.

◆ startTime

Contains the start time of this track, when type is SMPTE_OFFSET.

◆ timeSignature

Contains time signature data, when type is TIME_SIGNATURE.

◆ keySignature

Contains key signature data, when type is KEY_SIGNATURE.

Note
At most one of flats or sharps will contain a nonzero value.

The documentation for this union was generated from the following files: