diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-15 14:50:21 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-15 14:50:21 +0100 |
commit | 65089bc6ca9e31878afd583e133cb376ef03f268 (patch) | |
tree | 3f11c40a5ddf7ac289b4e7014776dfc9a8a4f785 /src/assets.c | |
parent | e8f4708a6d809c33719ec2f773d23e05c8619b2b (diff) | |
download | stepper-65089bc6ca9e31878afd583e133cb376ef03f268.tar.gz stepper-65089bc6ca9e31878afd583e133cb376ef03f268.zip |
[WIP] Initial implementation of CH3 envelope
Diffstat (limited to 'src/assets.c')
-rw-r--r-- | src/assets.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 { | |||
92 | WAVE_MAX, | 92 | WAVE_MAX, |
93 | }; | 93 | }; |
94 | 94 | ||
95 | #define WAVE_SIZE 4 | ||
95 | #define WAVE_VARS 4 | 96 | #define WAVE_VARS 4 |
96 | 97 | ||
97 | typedef u32 Wave[WAVE_VARS]; | 98 | typedef u32 Wave[WAVE_SIZE]; |
99 | static Wave wave_active = {0}; | ||
100 | static Wave wave_target = {0}; | ||
101 | static int wave_env_ticks = 0; | ||
102 | static int wave_env_decay = 8; | ||
98 | 103 | ||
99 | static const Wave waves[][WAVE_VARS] = { | 104 | static const Wave waves[][WAVE_VARS] = { |
100 | { | 105 | { |