aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-01-15 14:50:21 +0100
committerBad Diode <bd@badd10de.dev>2024-01-15 14:50:21 +0100
commit65089bc6ca9e31878afd583e133cb376ef03f268 (patch)
tree3f11c40a5ddf7ac289b4e7014776dfc9a8a4f785 /src/assets.c
parente8f4708a6d809c33719ec2f773d23e05c8619b2b (diff)
downloadstepper-65089bc6ca9e31878afd583e133cb376ef03f268.tar.gz
stepper-65089bc6ca9e31878afd583e133cb376ef03f268.zip
[WIP] Initial implementation of CH3 envelope
Diffstat (limited to 'src/assets.c')
-rw-r--r--src/assets.c7
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
97typedef u32 Wave[WAVE_VARS]; 98typedef u32 Wave[WAVE_SIZE];
99static Wave wave_active = {0};
100static Wave wave_target = {0};
101static int wave_env_ticks = 0;
102static int wave_env_decay = 8;
98 103
99static const Wave waves[][WAVE_VARS] = { 104static const Wave waves[][WAVE_VARS] = {
100 { 105 {