diff --git a/state.h b/state.h index 0c61d80..ee651ac 100644 --- a/state.h +++ b/state.h @@ -5,18 +5,23 @@ #include "vco.h" typedef struct { - float clock_bpm; - float vco_freq; + 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[10]; + }; vco_mode_t vco_mode; - float vco_volume; 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; } state_t;