         selected_capo_id = (i < 8) ? i + 1 : 0;  //frets 9 and more removes capo
       }
     }
+  }
 
   if (stop_pressed) {
     //noteOff for all lasers

    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();
*/
}



//------ handle events --------

inline void send_fret_sliding_event(int dir, int f) {
  pitch += dir * PITCH_HALFTONE;

  if (dir == 0) {
    pitch = 0;
  }
  else {
    send_vibrato_event(pitch);
  }

#ifdef DBG
  Serial.print(f);
