diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-06-28 22:41:03 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-06-28 22:41:03 +0300 |
commit | f170fb058a07175e6e753f2a6d20283dc7200a88 (patch) | |
tree | e43c20efa7efe12fbe1828777474669f9ac01135 /src/synth_engine.h | |
parent | 89e85142d0958d3e3a87fb155d698fc59eafd4c6 (diff) | |
download | synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.tar.gz synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.tar.bz2 synth-project-f170fb058a07175e6e753f2a6d20283dc7200a88.zip |
Add wavetable synthesis
Diffstat (limited to 'src/synth_engine.h')
-rw-r--r-- | src/synth_engine.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |