 const int ledPin = 13;
 
 const byte channelButtonStart = 0;
-//const byte channelButtonLedStart = 14;
 const byte numberOfChannelButtons = 2;
 const byte ledPins[] = {/*10, 11, 12,*/ 14, 15, 16};
 Bounce channelButtons[numberOfChannelButtons];
 boolean channelButtonStates[numberOfChannelButtons];
 boolean channelButtonDown[numberOfChannelButtons];
 
+const byte bankDownPin = 6;
+const byte bankUpPin = 7;
+Bounce bankDownButton = Bounce();
+Bounce bankUpButton = Bounce();
+boolean bankDownState;
+boolean bankDownDown;
+boolean bankUpState;
+boolean bankUpDown;
+
+const byte stopPin = 8;
+const byte playPin = 9;
+Bounce stopButton = Bounce();
+Bounce playButton = Bounce();
+boolean stopState;
+boolean stopDown;
+boolean playState;
+boolean playDown;
+
 const byte bpmLed = 22;
 
 

{
  usbMIDI.read();
  updateButtons();
}

void RealTimeSystem(byte realtimebyte) {


void updateButtons() {
  for (byte i = 0; i < numberOfChannelButtons; i++) {
    updateButtonState(channelButtonStart + i, &channelButtons[i], &channelButtonStates[i], &channelButtonDown[i]);
  }
  updateButtonState(bankDownPin, &bankDownButton, &bankDownState, &bankDownDown);
  updateButtonState(bankUpPin, &bankUpButton, &bankUpState, &bankUpDown);
  updateButtonState(stopPin, &stopButton, &stopState, &stopDown);
  updateButtonState(playPin, &playButton, &playState, &playDown);
}

void updateButtonState(byte pin, Bounce *button, boolean *state, boolean *down) {
  if ((*button).update()) {
    if ((*button).read() == LOW) {
      *down = true;
      Serial.print("Button ");
      Serial.print(pin);
      Serial.println(" down");
    } else if (*down) {
      Serial.print("Button ");
      Serial.print(pin);
      Serial.println(" up");
      *state = 1 - *state;
      *down = false;
    }
  }
}
