From ff0e7f1442e0732f56fe5751fb13f15d415db14f Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 3 May 2021 18:53:30 +0200 Subject: Update the number 4 in note sprites --- src/sequencer.c | 31 ++++++++++++++++++------------- 1 file 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[] = { 0x000000e0, 0xa0a0e0a0, 0x0000000e, 0x080c080e, 0x000000b8, 0xa898a8b8, 0x00000038, 0x20332239, 0x000000e0, 0xa060a0e0, 0x0000000e, 0x080c080e, - 0x000000e0, 0x202020e0, 0x00000008, 0x0c0a0e08, - 0x00000098, 0xa8a8a898, 0x00000020, 0x302b3a21, - 0x00000060, 0xa0a0a060, 0x00000008, 0x0c0a0e08, - 0x000000b8, 0x889888b8, 0x00000020, 0x302b3a21, - 0x000000e0, 0x206020e0, 0x00000008, 0x0c0a0e08, - 0x000000e0, 0x20602020, 0x00000008, 0x0c0a0e08, - 0x000000b8, 0x8888a8b8, 0x00000020, 0x302b3a21, - 0x000000e0, 0x2020a0e0, 0x00000008, 0x0c0a0e08, - 0x000000b8, 0xa8a8b8a8, 0x00000020, 0x302b3a21, - 0x000000e0, 0xa0a0e0a0, 0x00000008, 0x0c0a0e08, - 0x000000b8, 0xa898a8b8, 0x00000020, 0x302b3a21, - 0x000000e0, 0xa060a0e0, 0x00000008, 0x0c0a0e08, + 0x000000e0, 0x202020e0, 0x0000000a, 0x0a0e0808, + 0x00000098, 0xa8a8a898, 0x00000028, 0x283b2221, + 0x00000060, 0xa0a0a060, 0x0000000a, 0x0a0e0808, + 0x000000b8, 0x889888b8, 0x00000028, 0x283b2221, + 0x000000e0, 0x206020e0, 0x0000000a, 0x0a0e0808, + 0x000000e0, 0x20602020, 0x0000000a, 0x0a0e0808, + 0x000000b8, 0x8888a8b8, 0x00000028, 0x283b2221, + 0x000000e0, 0x2020a0e0, 0x0000000a, 0x0a0e0808, + 0x000000b8, 0xa8a8b8a8, 0x00000028, 0x283b2221, + 0x000000e0, 0xa0a0e0a0, 0x0000000a, 0x0a0e0808, + 0x000000b8, 0xa898a8b8, 0x00000028, 0x283b2221, + 0x000000e0, 0xa060a0e0, 0x0000000a, 0x0a0e0808, 0x000000e0, 0x202020e0, 0x0000000e, 0x020e080e, 0x00000098, 0xa8a8a898, 0x00000038, 0x083b2239, 0x00000060, 0xa0a0a060, 0x0000000e, 0x020e080e, @@ -756,7 +756,7 @@ update_sequencer_sprites(void) { // 51: Parameter selector. { int x = SEQ_ENV_POS_X + 1 + (param_selection_loc % 7) * SEQ_ENV_DIST; - int y = SEQ_ENV_POS_Y - 2; + int y = SEQ_ENV_POS_Y - 3; if (param_selection_loc >= 8) { y += 32; x -= 8 * SEQ_TRIG_DIST; @@ -891,6 +891,11 @@ handle_sequencer_input(void) { if (key_pressed(KEY_A)) { current_selection = SEQ_SELECT_TRIGGER; } + + // Enable disable trigger. + if (key_pressed(KEY_B)) { + sequence_synth[trig_selection_loc].trigger ^= 1; + } } if (key_pressed(KEY_START)) { -- cgit v1.2.1