|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
One event from a track, with its absolute tick.
Definition at line 28 of file smf_reader.hpp.
#include <smf_reader.hpp>
Public Types | |
| enum class | Kind : uint8_t { Channel , Tempo , TimeSignature , TrackName , EndOfTrack } |
| Which of the fields below the event carries. More... | |
Public Attributes | |
| Kind | kind = Kind::EndOfTrack |
| uint32_t | tick = 0 |
| MidiEvent | midi {} |
| uint32_t | tempo_us = 0 |
| uint8_t | numerator = 0 |
| uint8_t | denominator_power = 0 |
| const uint8_t * | text = nullptr |
| uint32_t | text_length = 0 |
|
strong |
Which of the fields below the event carries.
Definition at line 30 of file smf_reader.hpp.
| Kind sbl::midi::SmfEvent::kind = Kind::EndOfTrack |
what the event is
Definition at line 32 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::advance().
| uint32_t sbl::midi::SmfEvent::tick = 0 |
ticks from the start of the track
Definition at line 33 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::advance().
| MidiEvent sbl::midi::SmfEvent::midi {} |
Channel
Definition at line 34 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::advance().
| uint32_t sbl::midi::SmfEvent::tempo_us = 0 |
Tempo: microseconds per quarter note
Definition at line 35 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::advance().
| uint8_t sbl::midi::SmfEvent::numerator = 0 |
TimeSignature
Definition at line 36 of file smf_reader.hpp.
| uint8_t sbl::midi::SmfEvent::denominator_power = 0 |
TimeSignature: the denominator is 2^power
Definition at line 37 of file smf_reader.hpp.
| const uint8_t* sbl::midi::SmfEvent::text = nullptr |
TrackName: points into the file, not terminated
Definition at line 38 of file smf_reader.hpp.
| uint32_t sbl::midi::SmfEvent::text_length = 0 |
TrackName: length of text in bytes
Definition at line 39 of file smf_reader.hpp.