 //-------------------------
 void loop()
 {
+
+/* Debugging laser transistor levels
+      int a = analogRead(laser_pins[0]);
+      send_midi_debug(0, (int)((float)a / 8));
+      a = analogRead(laser_pins[1]);
+      send_midi_debug(1, (int)((float)a / 8));
+      a = analogRead(laser_pins[2]);
+      send_midi_debug(2, (int)((float)a / 8));
+      delay(200);
+      a = analogRead(laser_pins[3]);
+      send_midi_debug(3, (int)((float)a / 8));
+      a = analogRead(laser_pins[4]);
+      send_midi_debug(4, (int)((float)a / 8));
+      a = analogRead(laser_pins[5]);
+      send_midi_debug(5, (int)((float)a / 8));
+      delay(200);
+      return;
+*/
+
+  
   bool narazil_na_prst = false;
   //scan fret by fret
   for (int f = 0; f <= (NO_FRETS-1); f++) { //f<=12

  pinMode(stop_tone_pin, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(stop_tone_pin), stop_ISR, FALLING);

}




  //read analog emphasis
  boolean blocked = false;
  if (analogRead(emphasis_pin) > LASER_ANALOG_EMPH)
    blocked = true;
  if (last_alaser_status[6] != blocked) { //status changed
    last_alaser_status[6] = blocked;
