diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-15 16:14:14 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-15 16:14:14 +0100 |
commit | 22ddbd9d1688aed3220122ac7a513742140ed3b6 (patch) | |
tree | 9cc99919e74b09c8f1d42863d08c6fa7a63968c9 /src/assets.c | |
parent | f6efcdd98b32f1cd0d5a4a52abb333437c04b44f (diff) | |
download | stepper-22ddbd9d1688aed3220122ac7a513742140ed3b6.tar.gz stepper-22ddbd9d1688aed3220122ac7a513742140ed3b6.zip |
[WIP] Fix drawing bug on channel params
Diffstat (limited to 'src/assets.c')
-rw-r--r-- | src/assets.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/assets.c b/src/assets.c index be4b87c..2569c9e 100644 --- a/src/assets.c +++ b/src/assets.c | |||
@@ -85,24 +85,6 @@ static const u32 note_name_sprites[] = { | |||
85 | // Wave data. | 85 | // Wave data. |
86 | // | 86 | // |
87 | 87 | ||
88 | enum WAVES { | ||
89 | WAVE_SIN, | ||
90 | WAVE_SAW, | ||
91 | WAVE_SQUARE, | ||
92 | WAVE_MAX, | ||
93 | }; | ||
94 | |||
95 | #define WAVE_SIZE 4 | ||
96 | #define WAVE_VARS 4 | ||
97 | |||
98 | typedef u32 Wave[WAVE_SIZE]; | ||
99 | static Wave wave_active = {0}; | ||
100 | // static Wave wave_target = {0}; | ||
101 | // TODO: wave env status: OFF, ATTACK, DECAY | ||
102 | static int wave_env_ticks = 0; | ||
103 | static int wave_env_attack = 8; | ||
104 | static int wave_env_decay = 8; | ||
105 | |||
106 | static const Wave waves[][WAVE_VARS] = { | 88 | static const Wave waves[][WAVE_VARS] = { |
107 | { | 89 | { |
108 | {0xefdebc89, 0x98cbedfe, 0x10214376, 0x67341201}, | 90 | {0xefdebc89, 0x98cbedfe, 0x10214376, 0x67341201}, |