   }
 
   nextPartScheduled = true;
+  triggeredElapsed = 0;
 
   clearLine(1);
   lcd.setCursor(0, 1);


boolean repeat = false;
elapsedMillis repeatElapsed = 0;

void OnNoteOn(byte channel, byte note, byte velocity) {
  digitalWrite(ledPin, HIGH);

    repeatElapsed = 0;
  }

  if (!nextPartScheduled) {
    bankUpButton.turnLedOff();
  }

  if (triggeredElapsed > 200 && nextPartScheduled) {
    if (bankUpButton.isLedTurnedOn()) {
      bankUpButton.turnLedOff();
    } else {
      bankUpButton.turnLedOn();
    }
    triggeredElapsed = 0;
  }

  sendMidiNote();
}

