mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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:
parent
8f17b7c309
commit
94fa927861
3 changed files with 28 additions and 5 deletions
|
|
@ -1446,7 +1446,13 @@ ControlList::rt_safe_earliest_event_linear_unlocked (double start, double& x, do
|
|||
assert(inclusive ? x >= start : x > start);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
if (inclusive) {
|
||||
x = next->when;
|
||||
} else {
|
||||
x = start;
|
||||
}
|
||||
_search_cache.left = x;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* No points in the future, so no steps (towards them) in the future */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue