Substantial overhaul of tempo display code

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 19 January 2022 02:47 UTC

Major changes: do not delete and recreate markers and curves for every tempo map change, attach tempo curves directly to their (preceding) tempo marker, notable cleanup of TempoCurve class to remove unnecessary members.

More tweaks expected since algorithm for matching markers and tempo map points is not correct yet.

c916d3d952 Substantial overhaul of tempo display code
gtk2_ardour/editor.h | 31 +--
gtk2_ardour/editor_drag.cc | 84 +-------
gtk2_ardour/editor_drag.h | 4 +-
gtk2_ardour/editor_markers.cc | 16 +-
gtk2_ardour/editor_tempodisplay.cc | 383 ++++++++++++++++++++++++++++---------
gtk2_ardour/marker.cc | 53 ++++-
gtk2_ardour/marker.h | 45 +++--
gtk2_ardour/tempo_curve.cc | 87 ++++-----
gtk2_ardour/tempo_curve.h | 26 +--
9 files changed, 444 insertions(+), 285 deletions(-)

  • Share