ptttl v0.2.0
C implementation of a PTTTL parser. PTTTL is a superset of NOKIA's RTTTL that adds polyphony & vibrato.
|
#include <ptttl_parser.h>
Public Attributes | |
uint32_t | note_settings |
uint32_t | vibrato_settings |
Represents a single "compiled" note: pitch, duration & vibrato data
uint32_t ptttl_output_note_t::note_settings |
Bits 0-6 : Note value. Valid values are 0 through 88, with 1 through 88 representing the 88 keys on a piano keyboard (1 is the lowest note and 88 is the highest note), and 0 representing a pause/rest.
Bits 7-22 : Note duration in milliseconds. Valid values are 0x0 through 0xffff.
Bits 23-31 : Unused
uint32_t ptttl_output_note_t::vibrato_settings |
Bits 0-15 : Vibrato frequency in Hz
Bits 16-31 : Vibrato maximum +/- variance from the main pitch, in Hz