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_waveform_t Struct Reference

#include <ptttl_sample_generator.h>

Public Attributes

ptttl_waveform_generator_t wgen
 Per-sample waveform function (must not be NULL)
 
ptttl_waveform_note_setup_t note_setup
 Per-note setup callback, may be NULL.
 
void * wgendata
 

Detailed Description

Pairs a waveform generator function with an optional per-note setup callback. Used with ptttl_sample_generator_set_custom_waveform to define a fully custom waveform including any note-specific precomputation.

Member Data Documentation

◆ wgendata

void* ptttl_waveform_t::wgendata

Pointer to waveform-specific data, will be passed to the note_setup and wgen callbacks, may be NULL


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