diff --git a/include/detuning_helper.h b/include/detuning_helper.h index a301244ef..554041d2e 100644 --- a/include/detuning_helper.h +++ b/include/detuning_helper.h @@ -42,6 +42,11 @@ public: { } + virtual float defaultValue( void ) const + { + return( 0 ); + } + virtual QString displayName( void ) const { return( tr( "Note detuning" ) ); diff --git a/include/inline_automation.h b/include/inline_automation.h index 89fcda266..2a208eb81 100644 --- a/include/inline_automation.h +++ b/include/inline_automation.h @@ -48,10 +48,12 @@ public: } } + virtual float defaultValue( void ) const = 0; + inline bool hasAutomation( void ) const { return( m_autoPattern != NULL && - m_autoPattern->hasAutomation() ); + m_autoPattern->getTimeMap()[0] != defaultValue() ); } automationPattern * getAutomationPattern( void )