 
 boolean repeat = false;
 elapsedMillis repeatElapsed = 0;
+
+elapsedMillis triggeredElapsed = 0;
 
 void OnNoteOn(byte channel, byte note, byte velocity) {
   digitalWrite(ledPin, HIGH);

  }

  nextPartScheduled = true;

  clearLine(1);
  lcd.setCursor(0, 1);

    repeatElapsed = 0;
  }

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

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

  sendMidiNote();
}

