     {
       widget_save_->params.vals.stage_gate[stage_selected] = 5;
     }
-    seq_values.stage_gate[stage_selected] = (GateMode)(widget_save_->params.vals.stage_gate[stage_selected]);
     widget_save_->mark_changed();
     widget_save_->display();
     Display.fill_rect(widgets_gate_->x(stage_selected) + 1, widgets_gate_->y(stage_selected) + 1, 7, 7,

    {
      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,

      {
        widget_save_->params.vals.stage_gate[i] = 2;
      }
    }

    if(widget_save_->params.vals.stage_count < 1 || widget_save_->params.vals.stage_count > 8)
    {
      widget_save_->params.vals.stage_count = 8;
    }
    
    if(widget_save_->params.vals.slew_rate < 0 || widget_save_->params.vals.slew_rate > 16)
    {
      widget_save_->params.vals.slew_rate = 8;
    }
    slew_filter->set_frequency(slew_hz(widget_save_->params.vals.slew_rate));

    if(widget_save_->params.vals.clock_bpm < 0 || widget_save_->params.vals.clock_bpm > 300)
    {
