shift + play = mute channel
This commit is contained in:
@ -392,7 +392,7 @@ void checkInputs() {
|
||||
}
|
||||
|
||||
//play button
|
||||
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed) {
|
||||
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed && !shiftBtnPushed) {
|
||||
if (masterClockMode == 0) {
|
||||
calculateBPMTiming();
|
||||
if (!isPlaying) {
|
||||
@ -411,6 +411,15 @@ void checkInputs() {
|
||||
playBtnPushed = false;
|
||||
}
|
||||
|
||||
//shift + play = mute channel
|
||||
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed && shiftBtnPushed) {
|
||||
channels[displayTab - 1].isMute = !channels[displayTab - 1].isMute;
|
||||
playBtnPushed = true;
|
||||
updateScreen(); //to wake up the screen if turned off
|
||||
} else if (digitalRead(START_STOP_BTN_PIN) && playBtnPushed) {
|
||||
playBtnPushed = false;
|
||||
}
|
||||
|
||||
//shift button
|
||||
if (!digitalRead(SHIFT_BTN_PIN) && !shiftBtnPushed) {
|
||||
shiftBtnPushed = true;
|
||||
|
||||
Reference in New Issue
Block a user