 #endif
 
   //check for sliding
-  if (s ==0) {  //jen pro vybrnkavani
+  if (s ==0 ) {  //jen pro vybrnkavani
     unsigned long diff_us = micros() - fret_status_last_f_us;
     if (diff_us < FRET_SLIDING_THOLD) {
       int dir = f - fret_status_last_used; //0: no sliding, -1:sliding outward: 1: sliding inward
       send_fret_sliding_event(dir, f);
-    }
-    else {
-      send_fret_sliding_event(0, f);  //reset pitch    
-    }
-    fret_status_last_used = f;
-    fret_status_last_f_us = micros();
+      fret_status_last_used = f;
+      fret_status_last_f_us = micros();
+    }
   }
 
   //set status

    laser_status[l] = 0;
    laser_status_last_update_us[l] = 0;
    last_alaser_status[l] = false;
//    pinMode(laser_pins[l], INPUT);  //neni treba pro analog read
  }

//  attachInterrupt(digitalPinToInterrupt(laser_pins[0]), laser0_ISR, RISING);
//  attachInterrupt(digitalPinToInterrupt(laser_pins[1]), laser1_ISR, CHANGE);  //there is some HW difference, does not jitter that much
//  attachInterrupt(digitalPinToInterrupt(laser_pins[2]), laser2_ISR, RISING);
//  attachInterrupt(digitalPinToInterrupt(laser_pins[3]), laser3_ISR, RISING);
//  attachInterrupt(digitalPinToInterrupt(laser_pins[4]), laser4_ISR, RISING);
//  attachInterrupt(digitalPinToInterrupt(laser_pins[5]), laser5_ISR, RISING);

//  pinMode(emphasis_pin, INPUT);  //neni treba pro analog read
//  attachInterrupt(digitalPinToInterrupt(emphasis_pin), laseremphasis_ISR, RISING);
  last_alaser_status[6] = false;  //emhasis

  //init input pins with internal pullup resistors


  if (!skip_setup) {
    //find if instrument selection is pressed (top string), fret selects instrument
    for (int i = 0; i < NO_FRETS; i++) {
      if ((fret_status[i][5] == true)) {
        midiEventPacket_t special = {0x0C, 0xC0, instruments[i], 0};
        MidiUSB.sendMIDI(special);
