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

Method loadSettings

src/core/EnvelopeAndLfoParameters.cpp:361–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360
361void EnvelopeAndLfoParameters::loadSettings( const QDomElement & _this )
362{
363 m_predelayModel.loadSettings( _this, "pdel" );
364 m_attackModel.loadSettings( _this, "att" );
365 m_holdModel.loadSettings( _this, "hold" );
366 m_decayModel.loadSettings( _this, "dec" );
367 m_sustainModel.loadSettings( _this, "sustain" );
368 m_releaseModel.loadSettings( _this, "rel" );
369 m_amountModel.loadSettings( _this, "amt" );
370 m_lfoWaveModel.loadSettings( _this, "lshp" );
371 m_lfoPredelayModel.loadSettings( _this, "lpdel" );
372 m_lfoAttackModel.loadSettings( _this, "latt" );
373 m_lfoSpeedModel.loadSettings( _this, "lspd" );
374 m_lfoAmountModel.loadSettings( _this, "lamt" );
375 m_x100Model.loadSettings( _this, "x100" );
376 m_controlEnvAmountModel.loadSettings( _this, "ctlenvamt" );
377
378/* ### TODO:
379 Old reversed sustain kept for backward compatibility
380 with 4.15 file format*/
381
382 if( _this.hasAttribute( "sus" ) )
383 {
384 m_sustainModel.loadSettings( _this, "sus" );
385 m_sustainModel.setValue( 1.0 - m_sustainModel.value() );
386 }
387
388 // ### TODO:
389/* // Keep compatibility with version 2.1 file format
390 if( _this.hasAttribute( "lfosyncmode" ) )
391 {
392 m_lfoSpeedKnob->setSyncMode(
393 ( TempoSyncKnob::TtempoSyncMode ) _this.attribute(
394 "lfosyncmode" ).toInt() );
395 }*/
396
397 m_userWave.setAudioFile( _this.attribute( "userwavefile" ) );
398
399 updateSampleVars();
400}
401
402
403

Callers

nothing calls this directly

Calls 3

setValueMethod · 0.45
valueMethod · 0.45
setAudioFileMethod · 0.45

Tested by

no test coverage detected