diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-06-27 22:37:53 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-06-27 22:37:53 +0300 |
commit | 60c82a72fedd719f69c1f1de896aca00784a2881 (patch) | |
tree | 3679e0886fc12aa8eeeab60260347ee7a0c5ae0e /src/synth_engine.h | |
parent | e77d4d42cacd21bf80e4f47cba2fe85f5a5b0991 (diff) | |
download | synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.gz synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.bz2 synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.zip |
Changes
Diffstat (limited to 'src/synth_engine.h')
-rw-r--r-- | src/synth_engine.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/synth_engine.h b/src/synth_engine.h index 55dc04e..0c8145f 100644 --- a/src/synth_engine.h +++ b/src/synth_engine.h @@ -9,10 +9,11 @@ #include "notes.h" #include "filter.h" #include "adsr.h" +#include "control.h" //#define SAMPLE_RATE (44100) #define SAMPLE_RATE (48000) -#define FRAMES_PER_BUFFER (210) +#define FRAMES_PER_BUFFER (256) #define VIZ_BUF 1024 @@ -58,6 +59,14 @@ typedef struct viz_t { typedef struct { PaStream *stream; + + cc_t * ccs[128]; + int cci; + + cc_t cc_pitch; + cc_t cc_cutoff; + cc_t cc_resonance; + cc_t cc_lfo_freq; float freq_offset; float gain; @@ -77,11 +86,13 @@ typedef struct { int filter; int clamp; + int modifiers[16]; + int modi; + float (*gen[4]) (float freq, unsigned long long phase, float x, unsigned int sample_rate); int geni; float cutoff; - float resonance; BWLowPass* fff; BWBandStop* fff2; |