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

@ -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 */