From 65089bc6ca9e31878afd583e133cb376ef03f268 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 15 Jan 2024 14:50:21 +0100 Subject: [WIP] Initial implementation of CH3 envelope --- src/assets.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/assets.c') diff --git a/src/assets.c b/src/assets.c index 94c9de2..c11364e 100644 --- a/src/assets.c +++ b/src/assets.c @@ -92,9 +92,14 @@ enum WAVES { WAVE_MAX, }; +#define WAVE_SIZE 4 #define WAVE_VARS 4 -typedef u32 Wave[WAVE_VARS]; +typedef u32 Wave[WAVE_SIZE]; +static Wave wave_active = {0}; +static Wave wave_target = {0}; +static int wave_env_ticks = 0; +static int wave_env_decay = 8; static const Wave waves[][WAVE_VARS] = { { -- cgit v1.2.1