From 67540ad0f53b11eff6d8e11cc0863c765aa9af37 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 22 Sep 2016 16:27:01 -0500 Subject: [PATCH] add explicit "duplicate-regions" action --- gtk2_ardour/editor.h | 1 + gtk2_ardour/editor_ops.cc | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 1aa2f6f109..15e4c7c0be 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -2000,6 +2000,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD /* duplication */ void duplicate_range (bool with_dialog); + void duplicate_regions (float times); /** computes the timeline frame (sample) of an event whose coordinates * are in canvas units (pixels, scroll offset included). diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 004aff4f08..88a784b0b6 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4822,6 +4822,13 @@ Editor::paste_internal (framepos_t position, float times, const int32_t sub_num) commit_reversible_command (); } +void +Editor::duplicate_regions (float times) +{ + RegionSelection rs (get_regions_from_selection_and_entered()); + duplicate_some_regions (rs, times); +} + void Editor::duplicate_some_regions (RegionSelection& regions, float times) { -- 2.30.2