From db4a1312a9775756c599433851cf173fb6855949 Mon Sep 17 00:00:00 2001 From: Tom-on64 Date: Fri, 24 Apr 2026 15:13:31 +0200 Subject: [PATCH] Added array to state --- state.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) 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;