     {
       widget_save_->params.vals.gate_time = 16;
     }
-    seq_values.gate_ms = widget_save_->params.vals.gate_time * (uint16_t)(Clock.get_period() / 8000);
+    gate_ms = widget_save_->params.vals.gate_time * (uint16_t)(Clock.get_period() / 8000);
     widget_save_->mark_changed();
     widget_save_->display();
     Display.fill_rect(widget_gate_->x() + 2, widget_gate_->y() + 2, 16, 5, DUINO_SH1106::White);

    {
      widget_save_->params.vals.stage_pitch[stage_selected] = 119;
    }
    seq_values.stage_cv[stage_selected] = note_to_cv(widget_save_->params.vals.stage_pitch[stage_selected]);
    widget_save_->mark_changed();
    widget_save_->display();
    Display.fill_rect(widgets_pitch_->x(stage_selected), widgets_pitch_->y(stage_selected), 16, 15,

    }

    // set pitch CV state
    const float pitch_cv = note_to_cv(widget_save_->params.vals.stage_pitch[cached_stage]);
    const bool slew_on = (bool)((widget_save_->params.vals.stage_slew >> cached_stage) & 1);
    cv_out(CO1, slew_on ? slew_filter->filter(pitch_cv) : pitch_cv);

    // set gate and clock states
    gt_out(GT1, gate);
    gt_out(GT2, cached_clock_gate);

    // update reverse setting
    if(!widget_save_->params.vals.diradd_mode)
    {
      reverse = gt_read(CI1);
    }
