From 7f31a40932a6d36772dfece943c252081ef1882f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 22 Sep 2016 16:26:08 -0500 Subject: [PATCH] add "quantize" action for control surface access --- gtk2_ardour/editor_actions.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index aacb760e14..b493529b24 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -748,6 +748,11 @@ Editor::register_actions () myactions.register_action (editor_actions, X_("toggle-midi-input-active"), _("Toggle MIDI Input Active for Editor-Selected Tracks/Busses"), sigc::bind (sigc::mem_fun (*this, &Editor::toggle_midi_input_active), false)); + + + /* MIDI stuff */ + reg_sens (editor_actions, "quantize", _("Quantize"), sigc::mem_fun (*this, &Editor::quantize_region)); + } void @@ -1825,7 +1830,7 @@ Editor::register_region_actions () ); /* Duplicate selected regions */ - reg_sens (_region_actions, "duplicate-region", _("Duplicate"), sigc::bind (sigc::mem_fun (*this, &Editor::duplicate_range), false)); + reg_sens (_region_actions, "duplicate-region", _("Duplicate"), sigc::bind (sigc::mem_fun (*this, &Editor::duplicate_regions), 1)); /* Open the dialogue to duplicate selected regions multiple times */ reg_sens (