 }
 
 void setMidiOut(){
-
+ 
 valSongSwitch = digitalRead(SongSwitch); // Read Analog Input
  if (lastSongSwitch != valSongSwitch){ // Only send Midi CC if changed is detected
   controlChange(MidiChannel, 40, valSongSwitch); // Send CC

int ppqn = 0;

void setup(){
Serial.begin(115200);

for (int i=2; i<=7; i++){pinMode(i, INPUT);} // Set Inputs

for (int i=22; i<=35; i++){pinMode(i, INPUT);} // Set Inputs


 
for (int i=36; i<=52; i++){digitalWrite(i, HIGH);delay(250);} // Toggle Leds ON
for (int i=36; i<=52; i++){digitalWrite(i, LOW);delay(250);} // Toggle Leds OFF
 
attachInterrupt(JogWheelPinA, sendJogWheel, RISING); // interrupts
}

void loop(){
