From 6c9dc19eb4970e7a124d8d1b0a0b7c1077b48c63 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 11 Aug 2010 00:45:55 +0200 Subject: [PATCH] ZynAddSubFX: save and restore settings of new knobs When adding the new knobs for automatable parameters of ZynAddSubFX, I forgot to include them in the save/load routines. (cherry picked from commit 534c4debb519dcc6c33b93212db8648b2c691237) --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 67e3affe3..4d6db2de7 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -149,6 +149,14 @@ ZynAddSubFxInstrument::~ZynAddSubFxInstrument() void ZynAddSubFxInstrument::saveSettings( QDomDocument & _doc, QDomElement & _this ) { + m_portamentoModel.saveSettings( _doc, _this, "portamento" ); + m_filterFreqModel.saveSettings( _doc, _this, "filterfreq" ); + m_filterQModel.saveSettings( _doc, _this, "filtercut" ); + m_bandwidthModel.saveSettings( _doc, _this, "bandwidth" ); + m_fmGainModel.saveSettings( _doc, _this, "fmgain" ); + m_resCenterFreqModel.saveSettings( _doc, _this, "rescenterfreq" ); + m_resBandwidthModel.saveSettings( _doc, _this, "resbandwidth" ); + QTemporaryFile tf; if( tf.open() ) { @@ -188,6 +196,14 @@ void ZynAddSubFxInstrument::loadSettings( const QDomElement & _this ) return; } + m_portamentoModel.loadSettings( _this, "portamento" ); + m_filterFreqModel.loadSettings( _this, "filterfreq" ); + m_filterQModel.loadSettings( _this, "filtercut" ); + m_bandwidthModel.loadSettings( _this, "bandwidth" ); + m_fmGainModel.loadSettings( _this, "fmgain" ); + m_resCenterFreqModel.loadSettings( _this, "rescenterfreq" ); + m_resBandwidthModel.loadSettings( _this, "resbandwidth" ); + QDomDocument doc; doc.appendChild( doc.importNode( _this.firstChild(), true ) ); QTemporaryFile tf;