 
 inline boolean is_string_pressed_on_active_fret(int s_idx) {
   return digitalRead(string_pins[s_idx]);
+}
+
+void send_midi_debug(uint8_t v1, uint8_t v2) {
+  midiEventPacket_t packet0 = {0x09, 0x90 | 1, v1, v2};
+  MidiUSB.sendMIDI(packet0);
+  MidiUSB.flush();
+  delay(2);
 }
 
 uint8_t get_note(int l_idx) {


boolean fret_status[NO_FRETS][6];
int fret_status_last_f = UNDEF;
int fret_status_last_used = UNDEF;
unsigned long fret_status_last_f_us = 0;
int fret_status_last_s = UNDEF;


void laser5_ISR()   { laser_common_ISR(5); }

//-------------------------
void setup() {

  init_default_profile();

