aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-01-15 16:06:05 +0100
committerBad Diode <bd@badd10de.dev>2024-01-15 16:06:05 +0100
commitf6efcdd98b32f1cd0d5a4a52abb333437c04b44f (patch)
treef4542a21ceb080af21b684250650368de7fc9e3e /src/assets.c
parent65089bc6ca9e31878afd583e133cb376ef03f268 (diff)
downloadstepper-f6efcdd98b32f1cd0d5a4a52abb333437c04b44f.tar.gz
stepper-f6efcdd98b32f1cd0d5a4a52abb333437c04b44f.zip
[WIP] Add decay control and attack/decay params on ch3
Diffstat (limited to 'src/assets.c')
-rw-r--r--src/assets.c4
1 files changed, 3 insertions, 1 deletions
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 {
97 97
98typedef u32 Wave[WAVE_SIZE]; 98typedef u32 Wave[WAVE_SIZE];
99static Wave wave_active = {0}; 99static Wave wave_active = {0};
100static Wave wave_target = {0}; 100// static Wave wave_target = {0};
101// TODO: wave env status: OFF, ATTACK, DECAY
101static int wave_env_ticks = 0; 102static int wave_env_ticks = 0;
103static int wave_env_attack = 8;
102static int wave_env_decay = 8; 104static int wave_env_decay = 8;
103 105
104static const Wave waves[][WAVE_VARS] = { 106static const Wave waves[][WAVE_VARS] = {