               {
                 params.vals.gate_time = 16;
               }
-              seq_values.gate_time = (float)params.vals.gate_time / 16.0;
+              seq_values.gate_time = params.vals.gate_time;
               display->fill_rect(79, 3, 16, 5, DUINO_SSD1306::White);
               display_gate_time(79, 3, params.vals.gate_time, DUINO_SSD1306::Black);
               break;

              {
                params.vals.slew_rate = 16;
              }
              seq_values.slew_rate = (float)params.vals.slew_rate / 16.0;
              display->fill_rect(57, 3, 16, 5, DUINO_SSD1306::White);
              display_slew_rate(57, 3, params.vals.slew_rate, DUINO_SSD1306::Black);
              break;

    {
      params.vals.slew_rate = 8;
    }
    seq_values.slew_rate = params.vals.slew_rate;

    if(params.vals.gate_time < 0 || params.vals.gate_time > 16)
    {
      params.vals.gate_time = 8;
    }
    seq_values.gate_time = params.vals.gate_time;
    
    if(params.vals.clock_bpm < 0 || params.vals.clock_bpm > 30)
    {
      params.vals.clock_bpm = 0;
    }
    seq_values.clock_period = bpm_to_us(params.vals.clock_bpm);
    seq_values.clock_ext = !(bool)params.vals.clock_bpm;
    Timer1.initialize(seq_values.clock_period);
    Timer1.attachInterrupt(clock_isr);

    // draw global elements
