From 76894b0ac3a2abf621ef562c9329e971f522cc73 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 28 Jul 2020 12:29:11 -0500 Subject: [PATCH] When consolidating a Range of midi, the resulting region should fill the Range (not stop at the end of midi content) --- libs/ardour/session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index f78bcefa97..f67aa62a59 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -5918,13 +5918,13 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end, } } - /* construct a region to represent the bounced material */ + /* construct a whole-file region to represent the bounced material */ PropertyList plist; plist.add (Properties::start, 0); plist.add (Properties::whole_file, true); - plist.add (Properties::length, srcs.front()->length(srcs.front()->natural_position())); + plist.add (Properties::length, len); //ToDo: in nutempo, if the Range is snapped to bbt, this should be in bbt (?) plist.add (Properties::name, region_name_from_path (srcs.front()->name(), true)); plist.add (Properties::tags, "(bounce)");