Substantial overhaul of tempo display code

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.
This commit is contained in:
Paul Davis 2022-01-18 19:45:18 -07:00
parent dbefba9904
commit c916d3d952
9 changed files with 445 additions and 286 deletions

View file

@ -875,7 +875,7 @@ public:
private:
TempoMarker* _marker;
Temporal::TempoPoint* _real_section;
Temporal::TempoPoint const * _real_section;
bool _copy;
bool _movable;
@ -968,7 +968,7 @@ public:
private:
Temporal::Beats _grab_qn;
Temporal::TempoPoint* _tempo;
Temporal::TempoPoint const * _tempo;
XMLNode* _before_state;
bool _drag_valid;
};