|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
#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 | |
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.
| union { ... } AudioDataLib::MidiData::Timing |
| int8_t AudioDataLib::MidiData::Timing::framesPerSecond |
| uint8_t AudioDataLib::MidiData::Timing::ticksPerFrame |
| uint16_t AudioDataLib::MidiData::Timing::ticksPerQuarterNote |
| Type AudioDataLib::MidiData::Timing::type |