From 1f7abff38bd35c5f9d0e48e71e43475c6a693e69 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 16 Oct 2023 21:11:53 +0200 Subject: [PATCH] Include Track name when consolidating ranges --- gtk2_ardour/editor_ops.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 4a4afb508b..849d1f9266 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4272,15 +4272,19 @@ Editor::bounce_range_selection (BounceTarget target, bool with_processing) } string bounce_name; + bool include_track_name; switch (target) { case NewSource: bounce_name = "Bounced"; + include_track_name = true; break; case ReplaceRange: bounce_name = "Consolidated"; + include_track_name = true; break; case NewTrigger: bounce_name = "Unnamed Clip"; + include_track_name = false; break; } bool copy_to_clip_library = false; @@ -4420,9 +4424,9 @@ Editor::bounce_range_selection (BounceTarget target, bool with_processing) /*make the "source" (whole-file region)*/ /*note: bounce_range() will append the playlist name to the resulting region and filename*/ if (with_processing) { - r = rtv->track()->bounce_range (start.samples(), (start+cnt).samples(), itt, rtv->track()->main_outs(), false, bounce_name); + r = rtv->track()->bounce_range (start.samples(), (start+cnt).samples(), itt, rtv->track()->main_outs(), false, bounce_name, include_track_name); } else { - r = rtv->track()->bounce_range (start.samples(), (start+cnt).samples(), itt, std::shared_ptr(), false, bounce_name); + r = rtv->track()->bounce_range (start.samples(), (start+cnt).samples(), itt, std::shared_ptr(), false, bounce_name, include_track_name); } if (!r) {