| 92 | |
| 93 | |
| 94 | void dynProcControls::saveSettings( QDomDocument & _doc, |
| 95 | QDomElement & _this ) |
| 96 | { |
| 97 | //save input, output knobs |
| 98 | m_inputModel.saveSettings( _doc, _this, "inputGain" ); |
| 99 | m_outputModel.saveSettings( _doc, _this, "outputGain" ); |
| 100 | m_attackModel.saveSettings( _doc, _this, "attack" ); |
| 101 | m_releaseModel.saveSettings( _doc, _this, "release" ); |
| 102 | m_stereomodeModel.saveSettings( _doc, _this, "stereoMode" ); |
| 103 | |
| 104 | |
| 105 | //save waveshape |
| 106 | QString sampleString; |
| 107 | base64::encode( (const char *)m_wavegraphModel.samples(), |
| 108 | m_wavegraphModel.length() * sizeof(float), sampleString ); |
| 109 | _this.setAttribute( "waveShape", sampleString ); |
| 110 | |
| 111 | } |
| 112 | |
| 113 | |
| 114 | void dynProcControls::setDefaultShape() |