From f6efcdd98b32f1cd0d5a4a52abb333437c04b44f Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 15 Jan 2024 16:06:05 +0100 Subject: [WIP] Add decay control and attack/decay params on ch3 --- src/assets.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/assets.c') diff --git a/src/assets.c b/src/assets.c index c11364e..be4b87c 100644 --- a/src/assets.c +++ b/src/assets.c @@ -97,8 +97,10 @@ enum WAVES { typedef u32 Wave[WAVE_SIZE]; static Wave wave_active = {0}; -static Wave wave_target = {0}; +// static Wave wave_target = {0}; +// TODO: wave env status: OFF, ATTACK, DECAY static int wave_env_ticks = 0; +static int wave_env_attack = 8; static int wave_env_decay = 8; static const Wave waves[][WAVE_VARS] = { -- cgit v1.2.1