diff --git a/libs/ctrl-interface/control_protocol/basic_ui.cc b/libs/ctrl-interface/control_protocol/basic_ui.cc index ca474c8f9a..ddf47470e9 100644 --- a/libs/ctrl-interface/control_protocol/basic_ui.cc +++ b/libs/ctrl-interface/control_protocol/basic_ui.cc @@ -434,9 +434,9 @@ BasicUI::transport_rolling () const } void -BasicUI::trigger_stop_all (bool stop_all) +BasicUI::trigger_stop_all (bool immediately) { - session->trigger_stop_all (stop_all); + session->trigger_stop_all (immediately); } void @@ -445,6 +445,19 @@ BasicUI::trigger_cue_row (int cue_idx) session->trigger_cue_row (cue_idx); } +void +BasicUI::trigger_stop_col (int col, bool immediately) +{ + boost::shared_ptr tb = session->triggerbox_at (col); + if (tb) { + if (immediately) { + tb->stop_all_immediately (); + } else { + tb->stop_all_quantized (); + } + } +} + void BasicUI::tbank_set_size (int width, int height) { diff --git a/libs/ctrl-interface/control_protocol/control_protocol/basic_ui.h b/libs/ctrl-interface/control_protocol/control_protocol/basic_ui.h index bc748ecdfa..a062e1d1af 100644 --- a/libs/ctrl-interface/control_protocol/control_protocol/basic_ui.h +++ b/libs/ctrl-interface/control_protocol/control_protocol/basic_ui.h @@ -102,6 +102,7 @@ class LIBCONTROLCP_API BasicUI { void trigger_cue_row (int cue); void trigger_stop_all (bool stop_now = false); + void trigger_stop_col (int col, bool immediately = false); void store_mixer_scene (int scn); void apply_mixer_scene (int scn);