From eda2a959dc1f3aaadc6c904d68ca0410e595998b Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Fri, 3 Jul 2026 07:25:58 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20time=20signature=20assumption=20?= =?UTF-8?q?=E2=80=94=20all=20beats=20equal=20brightness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f61a584..262177d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,7 +29,6 @@ void midi_task(void* parameter) { // Beat timing fixes for precise beat alignment - sync to real MIDI time, not hardcoded tempo uint32_t last_beat = UINT32_MAX; uint32_t flash_start = 0; - uint8_t flash_peak = 255; while (true) { midi_transport.update(); @@ -46,13 +45,7 @@ void midi_task(void* parameter) { if (current_beat != last_beat) { last_beat = current_beat; flash_start = now; - // Beat 1 of each bar (every 4th beat) = full white; others dimmer - if (current_beat % 4 == 0) { - flash_peak = 255; - } else { - flash_peak = 64; - } - mux.set_led_color(6, flash_peak, flash_peak, flash_peak); + mux.set_led_color(6, 255, 255, 255); mux.show(); } @@ -65,7 +58,7 @@ void midi_task(void* parameter) { flash_start = 0; } else { float b = 1.0f - (float)elapsed / 80.0f; - uint8_t v = (uint8_t)((float)flash_peak * b * b); + uint8_t v = (uint8_t)(255 * b * b); mux.set_led_color(6, v, v, v); mux.show(); }