diff options
author | Bad Diode <bd@badd10de.dev> | 2021-05-03 18:53:30 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-05-03 18:53:30 +0200 |
commit | ff0e7f1442e0732f56fe5751fb13f15d415db14f (patch) | |
tree | 15ca24450f007dfaf45969aa83610084913697c7 | |
parent | 400b50baed8125a482895fa7534526c40cfd97af (diff) | |
download | gba-experiments-ff0e7f1442e0732f56fe5751fb13f15d415db14f.tar.gz gba-experiments-ff0e7f1442e0732f56fe5751fb13f15d415db14f.zip |
Update the number 4 in note sprites
-rw-r--r-- | src/sequencer.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/sequencer.c b/src/sequencer.c index b55ceca..0c6181f 100644 --- a/src/sequencer.c +++ b/src/sequencer.c | |||
@@ -23,18 +23,18 @@ u32 sprite_note_names[] = { | |||
23 | 0x000000e0, 0xa0a0e0a0, 0x0000000e, 0x080c080e, | 23 | 0x000000e0, 0xa0a0e0a0, 0x0000000e, 0x080c080e, |
24 | 0x000000b8, 0xa898a8b8, 0x00000038, 0x20332239, | 24 | 0x000000b8, 0xa898a8b8, 0x00000038, 0x20332239, |
25 | 0x000000e0, 0xa060a0e0, 0x0000000e, 0x080c080e, | 25 | 0x000000e0, 0xa060a0e0, 0x0000000e, 0x080c080e, |
26 | 0x000000e0, 0x202020e0, 0x00000008, 0x0c0a0e08, | 26 | 0x000000e0, 0x202020e0, 0x0000000a, 0x0a0e0808, |
27 | 0x00000098, 0xa8a8a898, 0x00000020, 0x302b3a21, | 27 | 0x00000098, 0xa8a8a898, 0x00000028, 0x283b2221, |
28 | 0x00000060, 0xa0a0a060, 0x00000008, 0x0c0a0e08, | 28 | 0x00000060, 0xa0a0a060, 0x0000000a, 0x0a0e0808, |
29 | 0x000000b8, 0x889888b8, 0x00000020, 0x302b3a21, | 29 | 0x000000b8, 0x889888b8, 0x00000028, 0x283b2221, |
30 | 0x000000e0, 0x206020e0, 0x00000008, 0x0c0a0e08, | 30 | 0x000000e0, 0x206020e0, 0x0000000a, 0x0a0e0808, |
31 | 0x000000e0, 0x20602020, 0x00000008, 0x0c0a0e08, | 31 | 0x000000e0, 0x20602020, 0x0000000a, 0x0a0e0808, |
32 | 0x000000b8, 0x8888a8b8, 0x00000020, 0x302b3a21, | 32 | 0x000000b8, 0x8888a8b8, 0x00000028, 0x283b2221, |
33 | 0x000000e0, 0x2020a0e0, 0x00000008, 0x0c0a0e08, | 33 | 0x000000e0, 0x2020a0e0, 0x0000000a, 0x0a0e0808, |
34 | 0x000000b8, 0xa8a8b8a8, 0x00000020, 0x302b3a21, | 34 | 0x000000b8, 0xa8a8b8a8, 0x00000028, 0x283b2221, |
35 | 0x000000e0, 0xa0a0e0a0, 0x00000008, 0x0c0a0e08, | 35 | 0x000000e0, 0xa0a0e0a0, 0x0000000a, 0x0a0e0808, |
36 | 0x000000b8, 0xa898a8b8, 0x00000020, 0x302b3a21, | 36 | 0x000000b8, 0xa898a8b8, 0x00000028, 0x283b2221, |
37 | 0x000000e0, 0xa060a0e0, 0x00000008, 0x0c0a0e08, | 37 | 0x000000e0, 0xa060a0e0, 0x0000000a, 0x0a0e0808, |
38 | 0x000000e0, 0x202020e0, 0x0000000e, 0x020e080e, | 38 | 0x000000e0, 0x202020e0, 0x0000000e, 0x020e080e, |
39 | 0x00000098, 0xa8a8a898, 0x00000038, 0x083b2239, | 39 | 0x00000098, 0xa8a8a898, 0x00000038, 0x083b2239, |
40 | 0x00000060, 0xa0a0a060, 0x0000000e, 0x020e080e, | 40 | 0x00000060, 0xa0a0a060, 0x0000000e, 0x020e080e, |
@@ -756,7 +756,7 @@ update_sequencer_sprites(void) { | |||
756 | // 51: Parameter selector. | 756 | // 51: Parameter selector. |
757 | { | 757 | { |
758 | int x = SEQ_ENV_POS_X + 1 + (param_selection_loc % 7) * SEQ_ENV_DIST; | 758 | int x = SEQ_ENV_POS_X + 1 + (param_selection_loc % 7) * SEQ_ENV_DIST; |
759 | int y = SEQ_ENV_POS_Y - 2; | 759 | int y = SEQ_ENV_POS_Y - 3; |
760 | if (param_selection_loc >= 8) { | 760 | if (param_selection_loc >= 8) { |
761 | y += 32; | 761 | y += 32; |
762 | x -= 8 * SEQ_TRIG_DIST; | 762 | x -= 8 * SEQ_TRIG_DIST; |
@@ -891,6 +891,11 @@ handle_sequencer_input(void) { | |||
891 | if (key_pressed(KEY_A)) { | 891 | if (key_pressed(KEY_A)) { |
892 | current_selection = SEQ_SELECT_TRIGGER; | 892 | current_selection = SEQ_SELECT_TRIGGER; |
893 | } | 893 | } |
894 | |||
895 | // Enable disable trigger. | ||
896 | if (key_pressed(KEY_B)) { | ||
897 | sequence_synth[trig_selection_loc].trigger ^= 1; | ||
898 | } | ||
894 | } | 899 | } |
895 | 900 | ||
896 | if (key_pressed(KEY_START)) { | 901 | if (key_pressed(KEY_START)) { |