AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
Loading...
Searching...
No Matches
AudioDataLib::MidiData::Timing Struct Reference

#include <MidiData.h>

Public Types

enum  Type { TICKS_PER_QUARTER_NOTE , FRAMES_PER_SECOND }
 

Public Attributes

union { 
 
   uint16_t   ticksPerQuarterNote 
 
   struct { 
 
      int8_t   framesPerSecond 
 
      uint8_t   ticksPerFrame 
 
   }  
 
};  
 
Type type
 

Detailed Description

This structure defines how the MIDI data is timed. MIDI files can be timed in two different ways. As of this writing, only the TICKS_PER_QUARTER_NOTE method is supported. For now, there isn't much care about how many ticks there are in a given quarter-note. Rather, this value, in combination with the tempo (expressed in microseconds per quarter-note), helps us determine the number of ticks per microsecond which, in turn, helps us know when to execute MIDI messages.

Member Enumeration Documentation

◆ Type

Enumerator
TICKS_PER_QUARTER_NOTE 
FRAMES_PER_SECOND 

Member Data Documentation

◆ [union]

◆ framesPerSecond

int8_t AudioDataLib::MidiData::Timing::framesPerSecond

◆ ticksPerFrame

uint8_t AudioDataLib::MidiData::Timing::ticksPerFrame

◆ ticksPerQuarterNote

uint16_t AudioDataLib::MidiData::Timing::ticksPerQuarterNote

◆ type

Type AudioDataLib::MidiData::Timing::type

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