summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */