From 97c4c2a28c19b7979ecbfd2eff28a351dfae1e6a Mon Sep 17 00:00:00 2001 From: nick_m Date: Sun, 26 Feb 2017 02:22:19 +1100 Subject: complete changes to tempo type. - this implements in the intention behind the previous commit. a tempo mark is constant until its end has been changed by a shift-drag on the next marker. --- gtk2_ardour/editor_ops.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor_ops.cc') diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 21dcce19fd..67f90fd43d 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -6714,8 +6714,9 @@ Editor::define_one_bar (framepos_t start, framepos_t end) } else if (t.frame() == start) { _session->tempo_map().change_existing_tempo_at (start, beats_per_minute, t.note_type(), t.end_note_types_per_minute()); } else { - const Tempo tempo (beats_per_minute, t.note_type(), t.end_note_types_per_minute()); - _session->tempo_map().add_tempo (tempo, 0.0, start, TempoSection::Constant, AudioTime); + /* constant tempo */ + const Tempo tempo (beats_per_minute, t.note_type()); + _session->tempo_map().add_tempo (tempo, 0.0, start, AudioTime); } XMLNode& after (_session->tempo_map().get_state()); -- cgit v1.2.3