 void color_to_note_sharp(int c){
   switch(c){
   case 0:
-    playNote("C#", octave, 300);
+    playNote("C#", octave, 400);
     break;
   case 1:
-    playNote("D#", octave, 300);
+    playNote("D#", octave, 400);
     break;
   case 2:
-    playNote("F", octave, 300);
+    playNote("F", octave, 400);
     break;
   case 3: 
-    playNote("F#", octave, 300);
+    playNote("F#", octave, 400);
     break;
   case 4:
-    playNote("G#", octave, 300);
+    playNote("G#", octave, 400);
     break;
   case 5:
-    playNote("A#", octave, 300);
+    playNote("A#", octave, 400);
     break;
   case 6:
-    playNote("C", octave + 1, 300);   
-    break;
+    playNote("C", octave + 1, 400);   
+    break;
+  default:
+    Serial.println("note off");
+    noteOff(0, index+octave*12, 64);
+    MIDIUSB.flush();
+
   }
 }
 

      index = i;
    }
  }
  noteOn(0, index+octave*12, 64);
  MIDIUSB.flush();
  delay(t);
  
  noteOff(0, index+octave*12, 64);
  MIDIUSB.flush();
}

int octave = 4;
void color_to_note_normal(int c) {
  Serial.print("normal note");
  switch(c){
  case 0:
    playNote("C", octave, 650);
    break;
  case 1:
    playNote("D", octave, 500);
    break;
  case 2:
    playNote("E", octave, 500);
    break;
  case 3: 
    playNote("F", octave, 500);
    break;
  case 4:
    playNote("G", octave, 500);
    break;
  case 5:
    playNote("A", octave, 500);
    break;
  case 6:
    playNote("B", octave, 500);   
    break;
  }
}


  switch(c)
  {
  case 0:
    playNote("B",octave - 1,  400);
    break;
  case 1:
    playNote("C#", octave, 400);
    break;
  case 2:
    playNote("D#", octave, 400);
    break;
  case 3: 
    playNote("E", octave, 400);
    break;
  case 4:
    playNote("F#", octave, 400);
    break;
  case 5:
    playNote("G#", octave, 400);
    break;
  case 6:
    playNote("A#", octave, 400);   
    break;
  default:
    Serial.println("note off");
    noteOff(0, index+octave*12, 64);
    MIDIUSB.flush();
  }
}
