Beat 1 = % 4 == 1 (last untested offset)
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user