Tempo ramps - more code consolidation wrt add meter/tempo.
[ardour.git] / gtk2_ardour / editor_ops.cc
index 960b7b3123fda7dfa71346de68bf1cc84ff1e679..2038c40860f81ac5d695f7cd5a9416a3f27a0ee7 100644 (file)
@@ -6552,7 +6552,7 @@ 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());
        } else {
-               _session->tempo_map().add_tempo (Tempo (beats_per_minute, t.note_type()), start, TempoSection::Constant);
+               _session->tempo_map().add_tempo (Tempo (beats_per_minute, t.note_type()), 0.0, start, TempoSection::Constant, AudioTime);
        }
 
        XMLNode& after (_session->tempo_map().get_state());