From 3552cfd2f5c67083b7e3d7a3d70e95705a3c8067 Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Fri, 29 Nov 2024 17:47:44 +0200 Subject: [PATCH] fixed 4ppqn ext clock bug (same fix as in 1.1.2) --- Software/Gravity/Gravity.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Software/Gravity/Gravity.ino b/Software/Gravity/Gravity.ino index 251cd5c..bd45a1a 100644 --- a/Software/Gravity/Gravity.ino +++ b/Software/Gravity/Gravity.ino @@ -252,7 +252,6 @@ void externalClock() { //reset cycles if there were no pulses for a while if ((newExtPulseTime - lastExtPulseTime) > 125) { //125ms is 20bpm - resetClocks(); } @@ -473,7 +472,7 @@ void calculateBPMTiming() { pulsePeriod = 600000 / (calcbpm * PPQN); } else if (masterClockMode == 1 && extClockPPQN == 1) { //for ext 1/16 clock (hardcoded) - pulsePeriod = (newExtPulseTime - lastExtPulseTime) / 6; + pulsePeriod = (newExtPulseTime - lastExtPulseTime) * 10 / 6; } }