diff --git a/include/AutomationPattern.h b/include/AutomationPattern.h index 0593e8bb1..32b4bc286 100644 --- a/include/AutomationPattern.h +++ b/include/AutomationPattern.h @@ -80,7 +80,7 @@ public: MidiTime putValue( const MidiTime & time, const float value, const bool quantPos = true, - const bool controlKey = false ); + const bool ignoreSurroundingPoints = false ); void removeValue( const MidiTime & time ); diff --git a/src/core/AutomationPattern.cpp b/src/core/AutomationPattern.cpp index aab1eaec7..c307236d5 100644 --- a/src/core/AutomationPattern.cpp +++ b/src/core/AutomationPattern.cpp @@ -206,7 +206,7 @@ void AutomationPattern::updateLength() MidiTime AutomationPattern::putValue( const MidiTime & time, const float value, const bool quantPos, - const bool controlKey ) + const bool ignoreSurroundingPoints ) { cleanObjects(); @@ -219,7 +219,7 @@ MidiTime AutomationPattern::putValue( const MidiTime & time, // Remove control points that are covered by the new points // quantization value. Control Key to override - if( ! controlKey ) + if( ! ignoreSurroundingPoints ) { for( int i = newTime + 1; i < newTime + quantization(); ++i ) {