 
 boolean led_state;
 char tmp_str[256];
+
+boolean serial_over_midi;
+String send_buffer;
 
 struct trigger {
   long t;  // time of latest occurrence in microseconds

      send_ack(CMD_MIDI);
    } else if (cmd == CMD_NOTE) {
      unsigned long note_time = time_us + NOTE_DELAY;
      Serial.print(flip_case(cmd));
      Serial.print(" ");
      Serial.println(note_time);
      Serial.send_now();
      while (time_us < note_time);
      usbMIDI.sendNoteOn(60, 99, 1);
      usbMIDI.send_now();


#define NOTE_DELAY 10000 // 10 ms

// Message types for MIDI encapsulation
#define MIDI_MODE_TYPE 4  // Program Change
#define MIDI_COMMAND_TYPE 5  // Channel Pressure

#define MIDI_SYSEX_BEGIN '\xF0'
#define MIDI_SYSEX_END '\xF7'

// On Teensy LC probably need to use the high current pins
// for most LEDs.
