From b03e9b4c102430b23b4f0e6b081bed881cd5ab72 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Aug 2022 09:20:58 -0600 Subject: [PATCH] NOOP: add helpful explanatory comment --- libs/evoral/ControlList.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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);