   {
     // initialize interface
     selected = 0;
-    gate_last = false;
     display_changed = false;
 
     // initialize ADSR values

  }

 private:
  void display_gate()
  {

  }

  uint8_t selected;
  int8_t v[4], v_last[4];
  bool gate_last, display_changed;
};

DU_ADSR_Function * function;

    }
    else if(gate)
    {
      gate_time = millis() - (unsigned long)((cv_current / ENV_PEAK) * float(adsr_values.A));
    }
  }

