summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_scene_changer.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-19 09:02:11 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:14 -0400
commit3b1609fc526a8a9ae8bc44a120667f0f5e795753 (patch)
treeff2aab600e62f9d2201d5c8a5a653e9e8edd234a /libs/ardour/midi_scene_changer.cc
parent60b16811b7b36cb3faad48d07670cb4f06ff04be (diff)
use the frame/sample based inter-scene gap, not the msecs one (now removed)
Diffstat (limited to 'libs/ardour/midi_scene_changer.cc')
-rw-r--r--libs/ardour/midi_scene_changer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/midi_scene_changer.cc b/libs/ardour/midi_scene_changer.cc
index 6288a6fc84..75d5581ce5 100644
--- a/libs/ardour/midi_scene_changer.cc
+++ b/libs/ardour/midi_scene_changer.cc
@@ -296,11 +296,10 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program
Locations* locations (_session.locations ());
Location* loc;
bool new_mark = false;
- framecnt_t slop = (framecnt_t) floor ((Config->get_inter_scene_gap_msecs() / 1000.0) * _session.frame_rate());
/* check for marker at current location */
- loc = locations->mark_at (time, slop);
+ loc = locations->mark_at (time, Config->get_inter_scene_gap_frames());
if (!loc) {
/* create a new marker at the desired position */