       Serial.print(" ");
       Serial.println(beep_time);
       Serial.send_now();
+    } else if (cmd == CMD_MIDI) {
+      midi.t = 0;
+      midi.count = 0;
+      midi.probe = true;
+      midi.autosend = true;
+      send_ack(CMD_MIDI);
     } else if (cmd == CMD_NOTE) {
       long note_time = time_us;
       usbMIDI.sendNoteOn(60, 99, 1);

#define CMD_AUDIO               'A'
#define CMD_BEEP                'B'

#define CMD_NOTE                'N'



  screen.tag = 'S';
  gshock.tag = 'G';
  sound.tag = 'A';  // for Audio
  midi.tag = 'M';

  led_state = false;
  interrupts();
