fixed behaviour for inline-automations with only one value in time-map
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1329 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -42,6 +42,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual float defaultValue( void ) const
|
||||
{
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
virtual QString displayName( void ) const
|
||||
{
|
||||
return( tr( "Note detuning" ) );
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user