MCPcopy Create free account
hub / github.com/LMMS/lmms / syncPlugin

Method syncPlugin

plugins/vestige/vestige.cpp:1063–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061
1062
1063void manageVestigeInstrumentView::syncPlugin( void )
1064{
1065 char paramStr[35];
1066 QStringList s_dumpValues;
1067 const QMap<QString, QString> & dump = m_vi->m_plugin->parameterDump();
1068 float f_value;
1069
1070 for( int i = 0; i < m_vi->paramCount; i++ )
1071 {
1072 // only not automated knobs are synced from VST
1073 // those auto-setted values are not jurnaled, tracked for undo / redo
1074 if( !( m_vi->knobFModel[ i ]->isAutomated() || m_vi->knobFModel[ i ]->controllerConnection() ) )
1075 {
1076 sprintf( paramStr, "param%d", i );
1077 s_dumpValues = dump[ paramStr ].split( ":" );
1078 f_value = LocaleHelper::toFloat(s_dumpValues.at(2));
1079 m_vi->knobFModel[ i ]->setAutomatedValue( f_value );
1080 m_vi->knobFModel[ i ]->setInitValue( f_value );
1081 }
1082 }
1083}
1084
1085
1086

Callers

nothing calls this directly

Calls 4

toFloatFunction · 0.85
setAutomatedValueMethod · 0.80
setInitValueMethod · 0.80
isAutomatedMethod · 0.45

Tested by

no test coverage detected