limit automation event density - fixes #5928

Constrain control points to one per tick (1/1920 beats).

Prior to this it was possible to set two values to the
same time (interpolation and iteration failed).
This commit is contained in:
Robin Gareus 2014-06-07 17:43:12 +02:00
parent 8f17b7c309
commit 94fa927861
3 changed files with 28 additions and 5 deletions

View file

@ -47,6 +47,7 @@ class TimeAxisView;
class AutomationTimeAxisView;
class Selectable;
class Selection;
class PublicEditor;
/** A GUI representation of an ARDOUR::AutomationList */
@ -183,7 +184,7 @@ public:
ContiguousControlPoints (AutomationLine& al);
double clamp_dx (double dx);
void move (double dx, double dy);
void compute_x_bounds ();
void compute_x_bounds (PublicEditor& e);
private:
AutomationLine& line;
double before_x;