   {
     gt_attach_interrupt(GT3, clock_isr, CHANGE);
     gt_attach_interrupt(GT4, reset_isr, RISING);
+
+    gate = clock_gate = retrigger = false;
   }
 
   virtual void loop()

    }
  }

  uint8_t main_selected;  // 0 - save, 1 - top, 2 - pitch, 3 - steps, 4 - gate, 5 - slew
  uint8_t top_selected;   // 0 - count, 1 - dir/add, 2 - slew, 3 - gate, 4 - clock
  uint8_t stage_selected;

  bool display_changed;


    main_selected = 2;
    top_selected = 0;
    display_changed = false;
    last_gate = false;
    last_stage = 0;

    // draw top line
    display->draw_du_logo_sm(0, 0, DUINO_SSD1306::White);
