From 60c82a72fedd719f69c1f1de896aca00784a2881 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 27 Jun 2023 22:37:53 +0300 Subject: Changes --- src/synth_engine.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/synth_engine.h') 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; -- cgit v1.2.3