diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-13 02:46:36 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-13 02:46:36 +0000 |
commit | e0cf3b6354e2c92a6adabe85cb6d6d3c547c287c (patch) | |
tree | 564e24afbcdda3cf67c06b3ac71db3cb5b66023f /libs/ardour/ticker.cc | |
parent | 6aaf4ea17a326eb06d81b06cb83048fbdaaa8a52 (diff) |
more fun and games with meter and the tempo map: rename Meter::beats_per_bar() to Meter::divisions_per_bar() so that its clear(er) on what it is actually returning; use Meter::divisions_per_bar() in more (all?) places that need it; fix up dragging meter marks by removing the relevant meter section from the map while we drag; operator<< for some tempo-related objects
git-svn-id: svn://localhost/ardour2/branches/3.0@10995 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ticker.cc')
-rw-r--r-- | libs/ardour/ticker.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/ardour/ticker.cc b/libs/ardour/ticker.cc index a46bc56c2d..e53d31bff8 100644 --- a/libs/ardour/ticker.cc +++ b/libs/ardour/ticker.cc @@ -157,10 +157,7 @@ void MidiClockTicker::tick (const framepos_t& transport_frames, const Timecode:: double MidiClockTicker::one_ppqn_in_frames (framepos_t transport_position) { const Tempo& current_tempo = _session->tempo_map().tempo_at(transport_position); - const Meter& current_meter = _session->tempo_map().meter_at(transport_position); - double frames_per_beat = - current_tempo.frames_per_beat(_session->nominal_frame_rate(), - current_meter); + double frames_per_beat = current_tempo.frames_per_beat(_session->nominal_frame_rate()); double quarter_notes_per_beat = 4.0 / current_tempo.note_type(); double frames_per_quarter_note = frames_per_beat / quarter_notes_per_beat; |