ptttl v0.3.0
C implementation of a PTTTL parser. PTTTL is a superset of NOKIA's RTTTL that adds polyphony & vibrato.
Public Attributes | List of all members
ptttl_output_note_t Struct Reference

#include <ptttl_parser.h>

Public Attributes

uint32_t note_settings
 
uint32_t vibrato_settings
 

Detailed Description

Represents a single "compiled" note: pitch, duration & vibrato data

Member Data Documentation

◆ note_settings

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-9 : Note duration fraction index. Maps as follows: 0=whole(1), 1=half(2), 2=quarter(4), 3=8th(8), 4=16th(16), 5=32nd(32)

Bit 10 : Dot flag. 1 if the note is dotted (duration *= 1.5), 0 if not.

Bits 11-31: Unused.

◆ vibrato_settings

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


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