diff --git a/libs/evoral/ControlList.cc b/libs/evoral/ControlList.cc index 74965af8e8..af283c7a8f 100644 --- a/libs/evoral/ControlList.cc +++ b/libs/evoral/ControlList.cc @@ -1828,6 +1828,13 @@ ControlList::rt_safe_earliest_event_linear_unlocked (Temporal::timepos_t const & } } + /* at this point, + * + * if ramping up, y must >= first->value and <= next->value + * or + * if ramping up, y must <= first->value and >= next->value + */ + assert ((y >= first->value && y <= next->value) || (y <= first->value && y >= next->value) ); const bool past_start = (inclusive ? x >= start : x > start);