summaryrefslogtreecommitdiffstats
path: root/src/synth_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth_engine.h')
-rw-r--r--src/synth_engine.h15
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;