init
This commit is contained in:
parent
5fbddbbc26
commit
614fa6cdc8
12 changed files with 345 additions and 8 deletions
19
dsp.h
Normal file
19
dsp.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue