summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-03-26 04:48:29 +1100
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:12 +1000
commit69b6379b232f7017892b897f4838f273392f4dc2 (patch)
treec08074af385857c564af73dd39eb73d742c812de /gtk2_ardour/editor_tempodisplay.cc
parent1be5a427378e511427b2bff2ee0cd6a0709791b9 (diff)
Tempo ramps - pressing constraint modifier keys during tempo drag changes tempo with vertical movement, incorporating beat constraint (if present).
- makes it easy to find suitable accelerandos for hit points in conjunction with playhead position, beat-locked tempos and initial meter frame.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 02b7027442..b6db6280e4 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -143,6 +143,9 @@ Editor::marker_position_changed ()
if ((tempo_marker = dynamic_cast<TempoMarker*> (*x)) != 0) {
if ((ts = &tempo_marker->tempo()) != 0) {
tempo_marker->set_position (ts->frame ());
+ char buf[64];
+ snprintf (buf, sizeof (buf), "%.2f", ts->beats_per_minute());
+ tempo_marker->set_name (buf);
}
}
if ((meter_marker = dynamic_cast<MeterMarker*> (*x)) != 0) {