From 2a5f9d8304c45eb9098713269e300a705b8488b6 Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Tue, 8 Apr 2025 21:07:42 +0300 Subject: [PATCH] 1.1.3 beta 1 --- Software/Gravity/Interactions.ino | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Software/Gravity/Interactions.ino b/Software/Gravity/Interactions.ino index 65b2cdc..12691ce 100644 --- a/Software/Gravity/Interactions.ino +++ b/Software/Gravity/Interactions.ino @@ -93,19 +93,19 @@ void checkInputs() { encoderChange = encoderChange * -1; } - if (((encoderChange > 0) != encoderDirectionOld) && encoderTimeBetweenPulses < 150) { //filter out encoder "jumps" - encoderChange = 0; - } - encoderDirectionOld = (encoderChange > 0); + /*if (((encoderChange > 0) != encoderDirectionOld) && encoderTimeBetweenPulses < 150) { //filter out encoder "jumps". Comented out + encoderChange = 0; //because it seems like sometimes it was preventing normal scroll + } //if it works ok without it delete encoderDirectionOld var altogether + encoderDirectionOld = (encoderChange > 0);*/ //encoder acceleration - if (encoderTimeBetweenPulses < 60) { + if (encoderTimeBetweenPulses < 15) { // <-- encoderBurstCount++; } else { encoderBurstCount = 0; } - if (encoderBurstCount > 2) { // - encoderChange = encoderChange * 3; // These two params need to be finetuned to feel natural + if (encoderBurstCount > 3) { // <-- + encoderChange = encoderChange * 3; // <-- The three params need to be finetuned to feel natural } if (displayScreen == 0) { @@ -169,7 +169,9 @@ void checkInputs() { } else if (((!insideTab && shiftBtnPushed) || (insideTab && menuItem == 0 && (menuItemSelected || shiftBtnPushed))) - && displayTab != 0 + && displayTab != 0 // things to try: + // count "burst" changes and apply acceleration (test the period between ticks in a new sketch) + && channels[displayTab - 1].mode == 2) { //Change SEQ pattern channels[displayTab - 1].seqPattern = channels[displayTab - 1].seqPattern + encoderChange; if (channels[displayTab - 1].seqPattern > 100) {