 
 int currentNote = 0;
 bool gate = false;
+String connectionData;
+String knobData;
 
 void loop() {
+  long timeCheck = millis();
   int i,j,k,m;
+  connectionData = "C";
   
   // supply 5V to each "write" demultiplexer in turn
   for(i=0;i<8;i++) {

              Serial.print("-");
              Serial.print(m*8 + k);
              Serial.print("\n");
            }
          }
        }

        // knob multiplexers are sharing selector pins with connection multiplexers
        // this means this is a good place to read the analogue values
        if(i==0 && j==0) {
          for(m=0;m<2;m++) {
            Serial.print("A");
            Serial.print(m*8+k);
            Serial.print("-");
            Serial.print(analogRead(m));
            Serial.print("\n");
          }
        }
      }

  for(int i=0;i<8;i++) {
    pinMode(READ_MUX_PINS[i], INPUT);
  }
  Serial.begin(250000);
  Serial1.begin(31250);
}

