Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::midi::SmfEvent Struct Reference

One event from a track, with its absolute tick. More...

Detailed Description

One event from a track, with its absolute tick.

Definition at line 44 of file smf_reader.hpp.

#include <smf_reader.hpp>

Public Types

enum class  Kind : uint8_t {
  Channel , Tempo , TimeSignature , TrackName ,
  EndOfTrack
}
 

Public Attributes

Kind kind = Kind::EndOfTrack
 
uint32_t tick = 0
 ticks from the start of the track
 
MidiEvent midi {}
 Channel.
 
uint32_t tempo_us = 0
 Tempo: microseconds per quarter note.
 
uint8_t numerator = 0
 TimeSignature.
 
uint8_t denominator_power = 0
 TimeSignature: the denominator is 2^power.
 
const uint8_t * text = nullptr
 TrackName: points into the file, not terminated.
 
uint32_t text_length = 0
 

Member Enumeration Documentation

◆ Kind

enum class sbl::midi::SmfEvent::Kind : uint8_t
strong
Enumerator
Channel 
Tempo 
TimeSignature 
TrackName 
EndOfTrack 

Definition at line 45 of file smf_reader.hpp.

Member Data Documentation

◆ kind

Kind sbl::midi::SmfEvent::kind = Kind::EndOfTrack

Definition at line 47 of file smf_reader.hpp.

Referenced by sbl::midi::Sequencer< Outputs >::advance().

◆ tick

uint32_t sbl::midi::SmfEvent::tick = 0

ticks from the start of the track

Definition at line 48 of file smf_reader.hpp.

Referenced by sbl::midi::Sequencer< Outputs >::advance().

◆ midi

MidiEvent sbl::midi::SmfEvent::midi {}

Channel.

Definition at line 49 of file smf_reader.hpp.

Referenced by sbl::midi::Sequencer< Outputs >::advance().

◆ tempo_us

uint32_t sbl::midi::SmfEvent::tempo_us = 0

Tempo: microseconds per quarter note.

Definition at line 50 of file smf_reader.hpp.

Referenced by sbl::midi::Sequencer< Outputs >::advance().

◆ numerator

uint8_t sbl::midi::SmfEvent::numerator = 0

TimeSignature.

Definition at line 51 of file smf_reader.hpp.

◆ denominator_power

uint8_t sbl::midi::SmfEvent::denominator_power = 0

TimeSignature: the denominator is 2^power.

Definition at line 52 of file smf_reader.hpp.

◆ text

const uint8_t* sbl::midi::SmfEvent::text = nullptr

TrackName: points into the file, not terminated.

Definition at line 53 of file smf_reader.hpp.

◆ text_length

uint32_t sbl::midi::SmfEvent::text_length = 0

Definition at line 54 of file smf_reader.hpp.


The documentation for this struct was generated from the following file: