aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-01-15 16:14:14 +0100
committerBad Diode <bd@badd10de.dev>2024-01-15 16:14:14 +0100
commit22ddbd9d1688aed3220122ac7a513742140ed3b6 (patch)
tree9cc99919e74b09c8f1d42863d08c6fa7a63968c9 /src/assets.c
parentf6efcdd98b32f1cd0d5a4a52abb333437c04b44f (diff)
downloadstepper-22ddbd9d1688aed3220122ac7a513742140ed3b6.tar.gz
stepper-22ddbd9d1688aed3220122ac7a513742140ed3b6.zip
[WIP] Fix drawing bug on channel params
Diffstat (limited to 'src/assets.c')
-rw-r--r--src/assets.c18
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
88enum 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
98typedef u32 Wave[WAVE_SIZE];
99static Wave wave_active = {0};
100// static Wave wave_target = {0};
101// TODO: wave env status: OFF, ATTACK, DECAY
102static int wave_env_ticks = 0;
103static int wave_env_attack = 8;
104static int wave_env_decay = 8;
105
106static const Wave waves[][WAVE_VARS] = { 88static const Wave waves[][WAVE_VARS] = {
107 { 89 {
108 {0xefdebc89, 0x98cbedfe, 0x10214376, 0x67341201}, 90 {0xefdebc89, 0x98cbedfe, 0x10214376, 0x67341201},