From f170fb058a07175e6e753f2a6d20283dc7200a88 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 28 Jun 2023 22:41:03 +0300 Subject: Add wavetable synthesis --- src/synth_engine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/synth_engine.h') diff --git a/src/synth_engine.h b/src/synth_engine.h index e2e91fd..a1f3d4a 100644 --- a/src/synth_engine.h +++ b/src/synth_engine.h @@ -38,6 +38,7 @@ typedef struct midi_note_t { PaTime noteOn; PaTime noteOff; float velocity; // normalized + size_t wvt_index; unsigned long long elapsed; adsr_t * adsr; int active; @@ -80,7 +81,7 @@ typedef struct { int modifiers[16]; int modi; - float (*gen[4]) (float freq, unsigned long long phase, float x, unsigned int sample_rate); + float (*gen[4]) (float freq, midi_note_t * midi_note, float x, unsigned int sample_rate); int geni; float cutoff; -- cgit v1.2.3