  */ 
 
 // Port I/O defines
-#define THRESHOLD 500
+#define THRESHOLD 700
 #define LASTPORT 7
-#define BUTTONPORT 2
+#define BUTTONPORT 8
 
 // MIDI property defines
 #define VOLUME 0x7F

void loop()
{
  // Main loop
  // 8 ports, from 0 to 7
  for (int i = 0; i <= LASTPORT; i++) {
    if(digitalRead(BUTTONPORT) == HIGH) {
      // Make sure that this is the first time that the button
      // has been pressed

#define note2 0x3E
#define note1 0x3C

int r0 = 0;      //value of select pin at the 4051 (s0)
int r1 = 0;      //value of select pin at the 4051 (s1)
int r2 = 0;      //value of select pin at the 4051 (s2)

int buttonState = 0;
int currentInstrument = 0;

