diff --git a/libs/evoral/evoral/ControlList.hpp b/libs/evoral/evoral/ControlList.hpp index f5aef8127d..e69a756b08 100644 --- a/libs/evoral/evoral/ControlList.hpp +++ b/libs/evoral/evoral/ControlList.hpp @@ -213,6 +213,7 @@ public: bool rt_safe_earliest_event (double start, double& x, double& y, bool start_inclusive=false) const; bool rt_safe_earliest_event_unlocked (double start, double& x, double& y, bool start_inclusive=false) const; + bool rt_safe_earliest_event_linear_unlocked (double start, double& x, double& y, bool inclusive) const; bool rt_safe_earliest_event_discrete_unlocked (double start, double& x, double& y, bool inclusive) const; void create_curve(); @@ -249,8 +250,6 @@ protected: void build_search_cache_if_necessary (double start) const; - bool rt_safe_earliest_event_linear_unlocked (double start, double& x, double& y, bool inclusive) const; - boost::shared_ptr cut_copy_clear (double, double, int op); bool erase_range_internal (double start, double end, EventList &); diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index b6a7dceca1..62293aa3c1 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -39,15 +39,14 @@ using namespace std; using namespace PBD; -/** Minimum time between MIDI outputs from a single controller, +/** Minimum time between MIDI outputs from a single interpolated controller, expressed in beats. This is to limit the rate at which MIDI messages - are generated, particularly for quickly-changing controllers which - are being interpolated. + are generated. It is only applied to interpolated controllers. XXX: This is a hack. The time should probably be expressed in seconds rather than beats, and should be configurable etc. etc. */ -static double const time_between_controller_outputs = 1.0 / 256; +static double const time_between_interpolated_controller_outputs = 1.0 / 256; namespace Evoral { @@ -262,10 +261,14 @@ Sequence