   bool diradd_mode;
   float slew_rate;
   float gate_time;
-  float clock_period;
+  uint16_t clock_period;
   bool clock_ext;
 };
 
-DU_SEQ_Values seq_values;
+volatile DU_SEQ_Values seq_values;
+
+volatile uint8_t stage;
+volatile uint8_t step;
+volatile bool clock_gate, retrigger;
 
 void clock_isr();
 void reset_isr();


  virtual void loop()
  {
  }
};

class DU_SEQ_Interface : public DUINO_Interface {

    return ((float)note - 36.0) / 12.0;
  }

  uint16_t bpm_to_ms(uint8_t bpm)
  {
    return 600000 / bpm;
  }

  void display_slew_rate(int16_t x, int16_t y, uint8_t rate, DUINO_SSD1306::SSD1306Color color)
