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

Detailed Description

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
 

Member Enumeration Documentation

◆ Kind

enum class sbl::midi::SmfEvent::Kind : uint8_t
strong

Which of the fields below the event carries.

Definition at line 30 of file smf_reader.hpp.

Member Data Documentation

◆ kind

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().

◆ tick

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().

◆ midi

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

Channel

Definition at line 34 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 35 of file smf_reader.hpp.

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

◆ numerator

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

TimeSignature

Definition at line 36 of file smf_reader.hpp.

◆ denominator_power

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

TimeSignature: the denominator is 2^power

Definition at line 37 of file smf_reader.hpp.

◆ text

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

TrackName: points into the file, not terminated

Definition at line 38 of file smf_reader.hpp.

◆ text_length

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

TrackName: length of text in bytes

Definition at line 39 of file smf_reader.hpp.


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