Merge pull request #3003 from LMMS/iss-2501

Fix LFO drifting
This commit is contained in:
Lukas W
2016-08-30 05:50:32 +12:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -221,7 +221,7 @@ void AutomatableModel::setValue( const float value )
++m_setValueDepth;
const float old_val = m_value;
m_value = fittedValue( value, true );
m_value = fittedValue( value );
if( old_val != m_value )
{
// add changes to history so user can undo it

View File

@@ -138,9 +138,9 @@ void TempoSyncKnobModel::saveSettings( QDomDocument & _doc, QDomElement & _this,
void TempoSyncKnobModel::loadSettings( const QDomElement & _this,
const QString & _name )
{
setSyncMode( ( TempoSyncMode ) _this.attribute( "syncmode" ).toInt() );
m_custom.loadSettings( _this, _name );
FloatModel::loadSettings( _this, _name );
m_custom.loadSettings( _this, _name );
setSyncMode( ( TempoSyncMode ) _this.attribute( "syncmode" ).toInt() );
}