stripped encoder to barebones, added midi start for external clock (still needs midi stop though)

This commit is contained in:
Oleksiy
2025-04-14 00:06:44 +03:00
parent 2a5f9d8304
commit ecb1f0e525
2 changed files with 14 additions and 20 deletions

View File

@ -99,14 +99,14 @@ void checkInputs() {
encoderDirectionOld = (encoderChange > 0);*/
//encoder acceleration
if (encoderTimeBetweenPulses < 15) { // <--
/*if (encoderTimeBetweenPulses < 15) { // <--
encoderBurstCount++;
} else {
encoderBurstCount = 0;
}
if (encoderBurstCount > 3) { // <--
encoderChange = encoderChange * 3; // <-- The three params need to be finetuned to feel natural
}
}*/
if (displayScreen == 0) {
byte channelCV;
@ -169,9 +169,7 @@ void checkInputs() {
} else if (((!insideTab && shiftBtnPushed)
|| (insideTab && menuItem == 0
&& (menuItemSelected || shiftBtnPushed)))
&& displayTab != 0 // things to try:
// count "burst" changes and apply acceleration (test the period between ticks in a new sketch)
&& displayTab != 0
&& channels[displayTab - 1].mode == 2) { //Change SEQ pattern
channels[displayTab - 1].seqPattern = channels[displayTab - 1].seqPattern + encoderChange;
if (channels[displayTab - 1].seqPattern > 100) {