From 4faf44588f806eac46b5c7ae5cc8058fc47da3f1 Mon Sep 17 00:00:00 2001 From: nick_m Date: Mon, 10 Oct 2016 03:39:57 +1100 Subject: Interpret start & length_beats properties as double rather than Evoral::Beats. - Evoral::Beats operator!= would prevent an increment of start_beats by intervals of less than a tick, so its possible that other subtle problems existed due to this kind of thing. --- libs/ardour/midi_diskstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/midi_diskstream.cc') diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index 708884900c..732b51c17b 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -1051,7 +1051,7 @@ MidiDiskstream::transport_stopped_wallclock (struct tm& /*when*/, time_t /*twhen /* start of this region is the offset between the start of its capture and the start of the whole pass */ plist.add (Properties::start, (*ci)->start - initial_capture); plist.add (Properties::length, (*ci)->frames); - plist.add (Properties::length_beats, converter.from((*ci)->frames)); + plist.add (Properties::length_beats, converter.from((*ci)->frames).to_double()); plist.add (Properties::name, region_name); boost::shared_ptr rx (RegionFactory::create (srcs, plist)); -- cgit v1.2.3