 void clock_isr();
 void reset_isr();
 
+void update_clock();
+
 class DU_SEQ_Function : public DUINO_Function {
  public:
   DU_SEQ_Function() : DUINO_Function(0b0111111111) { }

  virtual void loop()
  {
    // cache stage, step, and clock gate (so that each loop is "atomic")
    ATOMIC_BLOCK(ATOMIC_FORCEON)
    {
      cached_stage = stage;
      cached_step = step;
      cached_clock_gate = clock_gate;
      cached_retrigger = retrigger;
      retrigger = false;
    }

    if(cached_retrigger)
    {

#include <du-ino_dsp.h>
#include <TimerOne.h>
#include <avr/pgmspace.h>

#define DIGITAL_THRESH 3.0 // V

