     fret_status_last_f = UNDEF;
     fret_status_last_s = UNDEF;
   }
-/*
-  //midi fake controller for debuging
-  midiEventPacket_t packet = {0x0B, 0xB0, 0x50, s};
-  MidiUSB.sendMIDI(packet);
-  packet = {0x0B, 0xB0, 0x51, f};
-  MidiUSB.sendMIDI(packet);
-  MidiUSB.flush();
-*/
 }
 
 

  Serial.println(f * 10 + s);
#endif


/*
  //check for sliding
  unsigned long diff_us = micros() - fret_status_last_f_us;
  int dir = f - fret_status_last_used; //0: no sliding, -1:sliding outward: 1: sliding inward
  if (diff_us < FRET_SLIDING_THOLD) {
    send_fret_sliding_event(dir, f);
  }
*/
  fret_status_last_used = f;
  //set status
  if (pressed) {
    fret_status_last_f = f;

  }
}

inline void send_stop_tone_event(boolean stop_pressed, boolean skip_setup) {

  if (!skip_setup) {
    //find if instrument selection is pressed (top string), fret selects instrument
    for (int i = 0; i < 13; i++) {
      if ((fret_status[i][5] == true)) {
