summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-06-11 17:26:13 +0200
committerBad Diode <bd@badd10de.dev>2021-06-11 17:26:13 +0200
commit3c228ddd6a4df9ca055b7e22786ae3b7c43b5ea3 (patch)
treec271c96b1531efac917fed47932ecf277a46c1d2
parent4f1971b8365e05c86f71cebe9eb6f5c0c217a088 (diff)
downloadgba-sequencer-3c228ddd6a4df9ca055b7e22786ae3b7c43b5ea3.tar.gz
gba-sequencer-3c228ddd6a4df9ca055b7e22786ae3b7c43b5ea3.zip
Fix wave_b parameter adjustment
-rw-r--r--src/sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sequencer.c b/src/sequencer.c
index 399a016..d1be12d 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -1174,7 +1174,7 @@ handle_param_selection_ch3(void) {
1174 *byte = (0xF & *byte) | (((*byte >> 4) + inc) & 0xF) << 4; 1174 *byte = (0xF & *byte) | (((*byte >> 4) + inc) & 0xF) << 4;
1175 } 1175 }
1176 } else if (param_selection_loc < 64){ 1176 } else if (param_selection_loc < 64){
1177 u8 byte_number = param_selection_loc / 2; 1177 u8 byte_number = (param_selection_loc - 32) / 2;
1178 u8 *byte = &ch3.params[trig_selection_loc].wave_b; 1178 u8 *byte = &ch3.params[trig_selection_loc].wave_b;
1179 byte += byte_number; 1179 byte += byte_number;
1180 if (odd) { 1180 if (odd) {