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_tempodisplay.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/editor_tempodisplay.cc') diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 162179a7b9..35b4783f20 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -404,7 +404,7 @@ Editor::mouse_add_new_tempo_event (framepos_t frame) if (pulse > 0.0) { XMLNode &before = map.get_state(); /* add music-locked ramped (?) tempo using the bpm/note type at frame*/ - map.add_tempo (map.tempo_at_frame (frame), pulse, 0, TempoSection::Ramp, MusicTime); + map.add_tempo (map.tempo_at_frame (frame), pulse, 0, MusicTime); XMLNode &after = map.get_state(); _session->add_command(new MementoCommand(map, &before, &after)); @@ -531,17 +531,15 @@ Editor::edit_tempo_section (TempoSection* section) Timecode::BBT_Time when; tempo_dialog.get_bbt_time (when); - const TempoSection::Type ttype (tempo_dialog.get_tempo_type()); - begin_reversible_command (_("replace tempo mark")); XMLNode &before = _session->tempo_map().get_state(); if (tempo_dialog.get_lock_style() == AudioTime) { framepos_t const f = _session->tempo_map().predict_tempo_position (section, when).second; - _session->tempo_map().replace_tempo (*section, tempo, 0.0, f, ttype, AudioTime); + _session->tempo_map().replace_tempo (*section, tempo, 0.0, f, AudioTime); } else { double const p = _session->tempo_map().predict_tempo_position (section, when).first; - _session->tempo_map().replace_tempo (*section, tempo, p, 0, ttype, MusicTime); + _session->tempo_map().replace_tempo (*section, tempo, p, 0, MusicTime); } XMLNode &after = _session->tempo_map().get_state(); -- cgit v1.2.3