This commit is contained in:
Damian 2026-02-01 13:55:45 +01:00
commit 614fa6cdc8
12 changed files with 345 additions and 8 deletions

19
dsp.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef DSP_H
#define DSP_H
#include "osc.h"
typedef struct synthesizer {
float sr;
float wavetable[2048];
osc vco1, vco2, vco3;
osc lfo1, lfo2;
} synthesizer;
synthesizer *synth_create(float sample_rate);
void synth_destroy(synthesizer *s);
float next_sample(synthesizer *synth);
#endif