 
 void updateControl() {
   chuck.update();
-  // print the sensor reading so you know its range
-  if ( chuck.buttonZ )
-  {
-
-    envelope.noteOn();
-  }
-
-  int Pitch = map(chuck.readPitch(), 0, 170, 1, 16);
+
+  int Pitch = map(chuck.readPitch(), 0, 170, 1, 16); // map the Pitch to 1-16 to pick notes of G7 Arpeggio (V7 chord)
   if (chuck.buttonZ) {
     switch (Pitch) {
       case 1:

        break;
    }
  }

  if (chuck.buttonC) {
    gain = chuck.readJoyY() + 114;
    int roll = map(chuck.readRoll(), -180, 180, 1, 7);
    aEnvelop.setFreq(roll); //Map Roll coordinates to between 4 and 20 Hz for Modulator width
    aModulator.setFreq(aSin.next() + 0.4313f * kModFreq1.next() + kModFreq2.next());
  }
  gain = chuck.readJoyY() + 114;
  envelope.update();


}

  }

  else {
    switch (Pitch) {     //Map notes to Cmaj7 Arpeggio (I chord)
      case 1:
        aSin.setFreq(NOTE_C3);
        break;
