From 2abcb70459499dc5d729ec47b39bc43718ac6ced Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 24 Apr 2023 19:13:03 +0200 Subject: Add contextual drawing of piano notes --- src/main.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 2693d51..44e7718 100644 --- a/src/main.c +++ b/src/main.c @@ -15,7 +15,7 @@ WITH REGARD TO THIS SOFTWARE. // - Notification support for feedback when doing some operations // (copying/pasting) // - Animations for cursor movement/current step highlight. (A fade out maybe?) -// - Display played notes on all tonal channels when a trig or channel is not +// + Display played notes on all tonal channels when a trig or channel is not // selected. If a channel is selected show active note in that channel, if // a trig is selected behaved as usual. These could be highlighted in // different colors to make it easier on the eyes. If a pattern is selected, @@ -34,6 +34,7 @@ WITH REGARD TO THIS SOFTWARE. // - Pattern chaining for more than 1 queue and/or song mode. // - Undo/Redo. // - Add a settings page to change some configuration parameters. +// - Wrap around cursor left/right. // // Advanced // - Sync via MIDI via arduinoboy or something similar. @@ -85,18 +86,7 @@ render(void) { redraw_play_pause = false; } if (redraw_piano_note) { - PROF(draw_piano(), draw_piano_cycles); - if (input_handler != handle_trigger_selection && - input_handler != handle_param_selection_sq1 && - input_handler != handle_param_selection_sq2 && - input_handler != handle_param_selection_wave && - input_handler != handle_param_selection_noise) { - // TODO: Show last/current played notes in all channels. - } else { - // Show currently selected trigger note. - TriggerNote *trig = get_current_trig(); - PROF(draw_note(trig->note, COL_NOTE_PRESSED), draw_piano_cycles); - } + PROF(draw_piano_notes(), draw_piano_cycles); redraw_piano_note = false; } if (redraw_params) { -- cgit v1.2.1