Gate mode seems to work

This commit is contained in:
Oleksiy
2024-10-18 14:43:12 +03:00
parent 0d41ff9cbd
commit 7c235869a9
5 changed files with 109 additions and 103 deletions

View File

@ -193,10 +193,10 @@ void checkInputs() {
&& displayTab != 0
&& channels[displayTab - 1].mode == 4) { //Change GATE
channels[displayTab - 1].gate = channels[displayTab - 1].gate + change;
if (channels[displayTab - 1].gate > 100) {
if (channels[displayTab - 1].gate > 63) {
channels[displayTab - 1].gate = 0;
} else if (channels[displayTab - 1].gate > 40) {
channels[displayTab - 1].gate = 40;
} else if (channels[displayTab - 1].gate > 48) {
channels[displayTab - 1].gate = 48;
}
saveState();
} else if (insideTab && !shiftBtnPushed && !menuItemSelected) {
@ -395,8 +395,8 @@ void checkInputs() {
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed) {
if (masterClockMode == 0) {
calculateBPMTiming();
resetClocks();
if (!isPlaying) {
resetClocks();
isPlaying = true;
sendMIDIStart();
} else {