diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index 36758c3274..b6a7dceca1 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -39,6 +39,16 @@ using namespace std; using namespace PBD; +/** Minimum time between MIDI outputs from a single 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. + + 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; + namespace Evoral { // Read iterator (const_iterator) @@ -253,9 +263,9 @@ Sequence