summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-03-04 07:32:00 +1100
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:11 +1000
commit989089a4e997de450f1249bf24755a729f7568db (patch)
treee9366b6f61f5f5adbd7f65ce1cc5be810949e1f0 /gtk2_ardour/editor_tempodisplay.cc
parentaa95ffbc97ccab5cf5d43da9e89bdea85efdd406 (diff)
Tempo ramps - add method to handle beat-based tempo reordering. clean code.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 8509407ff6..bd5ff205e9 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -378,7 +378,7 @@ Editor::edit_tempo_section (TempoSection* section)
if (tempo_dialog.get_lock_style() == MusicTime) {
_session->tempo_map().replace_tempo (*section, Tempo (bpm, nt), beat, tempo_dialog.get_tempo_type());
} else {
- framepos_t const f = _session->tempo_map().compute_replacement_tempo_section (section, bpm, beat);
+ framepos_t const f = _session->tempo_map().compute_new_tempo_frame (section, Tempo (bpm, nt), beat);
_session->tempo_map().replace_tempo (*section, Tempo (bpm, nt), f, tempo_dialog.get_tempo_type());
}
XMLNode &after = _session->tempo_map().get_state();