summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-07-18 02:48:04 +1000
committernick_m <mainsbridge@gmail.com>2017-07-22 02:15:20 +1000
commit1399ef391de5b05888ea2e13e6ff80f14b6e84d9 (patch)
treeb9930edcee2fcfd0f427c6e58db67e41915913df /gtk2_ardour/editor_tempodisplay.cc
parentc03da364ad31dc31e90f954e6d8f7e38a59bdcfd (diff)
Remove redundant beat arg from TempoMap::add_meter
BBT time should be enough to determine the beat.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 35f74b6d54..b71ab32087 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -452,15 +452,14 @@ Editor::mouse_add_new_meter_event (framepos_t frame)
Timecode::BBT_Time requested;
meter_dialog.get_bbt_time (requested);
- const double beat = map.beat_at_bbt (requested);
- const double al_frame = map.frame_at_beat (beat);
+ const double al_frame = map.frame_at_bbt (requested);
begin_reversible_command (_("add meter mark"));
XMLNode &before = map.get_state();
if (meter_dialog.get_lock_style() == MusicTime) {
- map.add_meter (Meter (bpb, note_type), beat, requested, 0, MusicTime);
+ map.add_meter (Meter (bpb, note_type), requested, 0, MusicTime);
} else {
- map.add_meter (Meter (bpb, note_type), beat, requested, al_frame, AudioTime);
+ map.add_meter (Meter (bpb, note_type), requested, al_frame, AudioTime);
}
_session->add_command(new MementoCommand<TempoMap>(map, &before, &map.get_state()));