simulations

numerical experiments, simulations and learning projects
git clone https://damianlofi.de/git/simulations.git
Log | Files | Refs | README

dsp.h (310B)


      1 #ifndef DSP_H
      2 #define DSP_H
      3 
      4 #include "osc.h"
      5 
      6 typedef struct synthesizer {
      7     float sr;
      8     float wavetable[2048];
      9     osc vco1, vco2, vco3;
     10     osc lfo1, lfo2;
     11 } synthesizer;
     12 
     13 synthesizer *synth_create(float sample_rate);
     14 
     15 void synth_destroy(synthesizer *s);
     16 
     17 float next_sample(synthesizer *synth);
     18 
     19 #endif