ptttl v0.2.0
C implementation of a PTTTL parser. PTTTL is a superset of NOKIA's RTTTL that adds polyphony & vibrato.
Loading...
Searching...
No Matches
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-22 : Note duration in milliseconds. Valid values are 0x0 through 0xffff.

Bits 23-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: