Added state processing stage

This commit is contained in:
2026-04-27 12:11:41 +02:00
parent 1fd0a56064
commit 787bf50957
8 changed files with 57 additions and 44 deletions
+16 -18
View File
@@ -2,30 +2,28 @@
#include <stdint.h>
#include <stdbool.h>
#include "input.h"
#include "vco.h"
typedef struct {
union {
struct {
float clock_bpm;
float vco_freq;
float vco_volume;
float filter_freq;
float filter_resonance;
float env1_attack;
float env1_release;
float env2_attack;
float env2_release;
float reverb_amount;
};
float array[16];
};
float clock_bpm;
float vco_freq;
float vco_volume;
vco_mode_t vco_mode;
float filter_freq;
float filter_resonance;
float env1_attack;
float env1_release;
float env2_attack;
float env2_release;
float reverb_amount;
bool quant_enabled;
bool amen_enabled;
float dbg_sample;
} state_t;
extern state_t state;
void update_state(state_t* state, input_t* input);