Added array to state

This commit is contained in:
Tom-on64 2026-04-24 15:13:31 +02:00
parent 3ce93a08bf
commit db4a1312a9

25
state.h
View File

@ -5,18 +5,23 @@
#include "vco.h" #include "vco.h"
typedef struct { typedef struct {
float clock_bpm; union {
float vco_freq; 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[10];
};
vco_mode_t vco_mode; vco_mode_t vco_mode;
float vco_volume;
bool quant_enabled; bool quant_enabled;
float filter_freq;
float filter_resonance;
float env1_attack;
float env1_release;
float env2_attack;
float env2_release;
float reverb_amount;
bool amen_enabled; bool amen_enabled;
} state_t; } state_t;