From e1507d5d7c566ab1a57582c62a1510621f9089dd Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Fri, 3 Jul 2026 08:09:35 +0000 Subject: [PATCH] Beat 1 = % 4 == 1 (last untested offset) --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 97196af..8d72602 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,7 +45,7 @@ void midi_task(void* parameter) { last_beat = current_beat; flash_start = now + flash_latency; // Beat 1 (every 4th) = RED, others = WHITE - if (current_beat % 4 == 2) { + if (current_beat % 4 == 1) { mux.set_led_color(6, 255, 0, 0); } else { mux.set_led_color(6, 255, 255, 255); @@ -54,7 +54,7 @@ void midi_task(void* parameter) { if (flash_start > 0 && now >= flash_start) { mux.show(); - uint32_t hold = (last_beat % 4 == 2) ? 100 : 50; + uint32_t hold = (last_beat % 4 == 1) ? 100 : 50; uint32_t elapsed = now - flash_start; if (elapsed >= hold) { mux.set_led_color(6, 20, 20, 20);