Beat 1 = % 4 == 1 (last untested offset)

This commit is contained in:
ash
2026-07-03 08:09:35 +00:00
parent 3c5e0b07ae
commit e1507d5d7c
+2 -2
View File
@@ -45,7 +45,7 @@ void midi_task(void* parameter) {
last_beat = current_beat; last_beat = current_beat;
flash_start = now + flash_latency; flash_start = now + flash_latency;
// Beat 1 (every 4th) = RED, others = WHITE // 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); mux.set_led_color(6, 255, 0, 0);
} else { } else {
mux.set_led_color(6, 255, 255, 255); mux.set_led_color(6, 255, 255, 255);
@@ -54,7 +54,7 @@ void midi_task(void* parameter) {
if (flash_start > 0 && now >= flash_start) { if (flash_start > 0 && now >= flash_start) {
mux.show(); 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; uint32_t elapsed = now - flash_start;
if (elapsed >= hold) { if (elapsed >= hold) {
mux.set_led_color(6, 20, 20, 20); mux.set_led_color(6, 20, 20, 20);