From d2be261b88753c3e0fdeb7588057aa3f1648ead5 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 12 Jul 2023 16:02:28 +0200 Subject: Add notification bar and mockup of pattern chaining --- src/main.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e819558..5c7d6ed 100644 --- a/src/main.c +++ b/src/main.c @@ -23,6 +23,9 @@ WITH REGARD TO THIS SOFTWARE. // This could get annoying, so maybe it should be a configuration option to // enable it? // - Pattern chaining for more than 1 queue and/or song mode. +// - L: Remove from chain +// - R: Add to chain +// - Loop? // - Undo/Redo. // - Select + up/down to queue the next pattern as we move to it? // @@ -88,7 +91,18 @@ render_sequencer(void) { if (redraw_params) { PROF(draw_parameters(), draw_param_cycles); redraw_params = false; + } else if (input_handler == handle_pattern_selection){ + // DEBUG: move to drawing file + draw_rect( + PARAMS_START_X, + PARAMS_START_Y + 6, + PARAMS_START_X + PARAMS_W, + PARAMS_START_Y + PARAMS_H - 6, COL_FG); + txt_drawf_small("Current pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8, COL_FG, "A"); + txt_drawf_small("Next pattern: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 2, COL_FG, "A"); + txt_drawf_small("Chain: %s", PARAMS_START_X + 3, PARAMS_START_Y + 8 * 3, COL_FG, "A - B - B - A - B"); } + draw_notif_bar(); PROF(draw_cursors(), draw_cursor_cycles); } -- cgit v1.2.1