|
|
@@ -92,6 +92,7 @@ XmlElement* SaveState(const File& irDirectory, Processor& processor) |
|
|
|
convolutionElement->setAttribute("decayShape", processor.getDecayShape());
|
|
|
|
convolutionElement->setAttribute("stereoWidth", processor.getParameter(Parameters::StereoWidth));
|
|
|
|
convolutionElement->setAttribute("reverse", processor.getReverse());
|
|
|
|
convolutionElement->setAttribute("autoGain", processor.getParameter(Parameters::AutoGainDecibels));
|
|
|
|
|
|
|
|
// IRs
|
|
|
|
auto irAgents = processor.getAgents();
|
|
|
@@ -143,6 +144,7 @@ bool LoadState(const File& irDirectory, XmlElement& element, Processor& processo |
|
|
|
double attackShape = element.getDoubleAttribute("attackShape", 0.0);
|
|
|
|
double decayShape = element.getDoubleAttribute("decayShape", 0.0);
|
|
|
|
double stereoWidth = element.getDoubleAttribute("stereoWidth", Parameters::StereoWidth.getDefaultValue());
|
|
|
|
double autoGain = element.getDoubleAttribute("autoGain", Parameters::AutoGainDecibels.getDefaultValue());
|
|
|
|
bool reverse = element.getBoolAttribute("reverse", false);
|
|
|
|
|
|
|
|
Parameters::EqType eqLoType = klanginternal::String2EqType(element.getStringAttribute("eqLowType", juce::String()));
|
|
|
@@ -193,6 +195,7 @@ bool LoadState(const File& irDirectory, XmlElement& element, Processor& processo |
|
|
|
processor.setParameterNotifyingHost(Parameters::EqHighShelfFreq, static_cast<float>(eqHiShelfFreq));
|
|
|
|
processor.setParameterNotifyingHost(Parameters::EqHighShelfDecibels, static_cast<float>(eqHiShelfDecibels));
|
|
|
|
processor.setParameterNotifyingHost(Parameters::StereoWidth, static_cast<float>(stereoWidth));
|
|
|
|
processor.setParameterNotifyingHost(Parameters::AutoGainDecibels, static_cast<float>(autoGain));
|
|
|
|
processor.setIRBegin(irBegin);
|
|
|
|
processor.setIREnd(irEnd);
|
|
|
|
processor.setPredelayMs(predelayMs);
|
|
|
|