summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-02-26 02:22:19 +1100
committerRobin Gareus <robin@gareus.org>2017-02-27 20:16:10 +0100
commit97c4c2a28c19b7979ecbfd2eff28a351dfae1e6a (patch)
tree01a697ce2c07e532170288d33fae384d07b4f8ce /gtk2_ardour/editor_ops.cc
parentac19a51d38906f347baeb767d9b011955030921c (diff)
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.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc5
1 files changed, 3 insertions, 2 deletions
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());