ptttl v0.2.0
C implementation of a PTTTL parser. PTTTL is a superset of NOKIA's RTTTL that adds polyphony & vibrato.
|
#include <ptttl_sample_generator.h>
Public Attributes | |
ptttl_waveform_generator_t | wgen |
Waveform generator function. | |
uint32_t | vibrato_frequency |
Vibrato frequency, in HZ. | |
uint32_t | vibrato_variance |
Vibrato variance, in HZ. | |
unsigned int | sine_index |
Monotonically increasing index for sinf() function, note pitch. | |
unsigned int | start_sample |
The sample index on which this note started. | |
unsigned int | num_samples |
Number of samples this note runs for. | |
unsigned int | attack |
Note decay length, in samples. | |
unsigned int | decay |
Note decay length, in samples. | |
unsigned int | note_number |
Piano key number for this note, 1-88. | |
float | pitch_hz |
Note pitch in Hz. | |
float | phasor_state |
Phasor state for vibrato (frequency modulation) | |
Represents the current note that samples are being generated for on any one channel