new approach to tempo/meter: compute and store the entire map (every bar|beat point...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 2 Jan 2012 04:04:14 +0000 (04:04 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 2 Jan 2012 04:04:14 +0000 (04:04 +0000)
commit69c7dac1a1ee70c5a4053acdc9dd139c986698a2
treea5a13945a48d27e7ff4adf0ca916ffcab2bb0ef7
parent084fc8b3273d6daeb299773811c7d2bd0e1d5598
new approach to tempo/meter: compute and store the entire map (every bar|beat point), thus enabling us to use the same computation to set the BBT points AND the metric markers (tempo + meter) on the audio timeline. It is known that snapping to the BBT grid doesn't work correctly right now, but this probably caused by the separate code in TempoMap::round_to_type() and i'll dig into that tomorrow. Note that the Bar|beat point list is evaluated "lazily" - we'll never store more than anyone actually needs to display or know, other than 1 minute's worth starting from frame zero

git-svn-id: svn://localhost/ardour2/branches/3.0@11129 d708f5d6-7413-0410-9779-e7cbd77b26cf
gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_rulers.cc
gtk2_ardour/editor_tempodisplay.cc
gtk2_ardour/tempo_lines.cc
libs/ardour/ardour/tempo.h
libs/ardour/session_click.cc
libs/ardour/tempo.cc