Refactor tempo api, include quarter-note distance in frames method.
authornick_m <mainsbridge@gmail.com>
Sun, 30 Oct 2016 12:21:42 +0000 (23:21 +1100)
committernick_m <mainsbridge@gmail.com>
Thu, 10 Nov 2016 16:37:08 +0000 (03:37 +1100)
commit0e867b544b6d1b5f82f46cec7171998b2f2ca3bc
treecc9605fbd8ed505aedb3e1d04cfa301a84ad8b33
parentae63243bf3af8ab4dad8535ac2811df399c9a34a
Refactor tempo api, include quarter-note distance in frames method.

- moves frame rounding up to TempoMap, which is needed
  in order to calculate pulse distance without frame rounding.

- the time unit for tempo is still minute, but this now also
  applies to meter sections. (new audio locked meter sections no
  longer require a frame position).

- there is no longer a discontinuity
  in the pulse for audio-locked meter/tempi.

- temporarily add debugging output in Region::set_position()
  to test for region beat not matching region frame.
13 files changed:
gtk2_ardour/editor_drag.cc
gtk2_ardour/editor_markers.cc
gtk2_ardour/editor_tempodisplay.cc
gtk2_ardour/tempo_curve.cc
libs/ardour/ardour/tempo.h
libs/ardour/region.cc
libs/ardour/tempo.cc
libs/ardour/test/bbt_test.cc
libs/ardour/test/framepos_plus_beats_test.cc
libs/ardour/test/framewalk_to_beats_test.cc
libs/ardour/test/midi_clock_slave_test.h
libs/ardour/test/tempo_test.cc
libs/ardour/test/tempo_test.h