diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-15 16:06:05 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-15 16:06:05 +0100 |
commit | f6efcdd98b32f1cd0d5a4a52abb333437c04b44f (patch) | |
tree | f4542a21ceb080af21b684250650368de7fc9e3e /src/assets.c | |
parent | 65089bc6ca9e31878afd583e133cb376ef03f268 (diff) | |
download | stepper-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.c | 4 |
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 | ||
98 | typedef u32 Wave[WAVE_SIZE]; | 98 | typedef u32 Wave[WAVE_SIZE]; |
99 | static Wave wave_active = {0}; | 99 | static Wave wave_active = {0}; |
100 | static Wave wave_target = {0}; | 100 | // static Wave wave_target = {0}; |
101 | // TODO: wave env status: OFF, ATTACK, DECAY | ||
101 | static int wave_env_ticks = 0; | 102 | static int wave_env_ticks = 0; |
103 | static int wave_env_attack = 8; | ||
102 | static int wave_env_decay = 8; | 104 | static int wave_env_decay = 8; |
103 | 105 | ||
104 | static const Wave waves[][WAVE_VARS] = { | 106 | static const Wave waves[][WAVE_VARS] = { |