limit automation event density - fixes #5928
[ardour.git] / libs / evoral / src / ControlList.cpp
index 4b7704fff129688720c1c59e3543c05d11b67da4..e5073182143d2e889754f566594df9ab30fee75b 100644 (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 */