AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

commit eb958a89f1de0272f627a493899ad72f4e0b5ce0
parent 9588142242f768d013bfd9281c684c8f7559e676
Author: jatinchowdhury18 <[email protected]>
Date:   Sat, 15 May 2021 17:50:08 -0700

A couple minor fixes

Diffstat:
MPlugin/CMakeLists.txt | 1+
MPlugin/Source/PluginProcessor.cpp | 5+++++
MPlugin/Source/Presets/PresetManager.cpp | 3++-
3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Plugin/CMakeLists.txt b/Plugin/CMakeLists.txt @@ -55,6 +55,7 @@ target_compile_definitions(CHOWTapeModel JUCE_USE_CURL=0 JUCE_VST3_CAN_REPLACE_VST2=0 JUCE_JACK=1 + JUCE_ALSA=1 ) target_link_libraries(CHOWTapeModel PUBLIC diff --git a/Plugin/Source/PluginProcessor.cpp b/Plugin/Source/PluginProcessor.cpp @@ -327,8 +327,13 @@ AudioProcessorEditor* ChowtapeModelAudioProcessor::createEditor() #else auto* editor = new foleys::MagicPluginEditor (magicState, BinaryData::gui_xml, BinaryData::gui_xmlSize, std::move (builder)); #endif + onOffManager.setOnOffForNewEditor (editor); updater.showUpdaterScreen (editor); + + // we need to set resize limits for StandalonePluginHolder + editor->setResizeLimits (10, 10, 2000, 2000); + return editor; } diff --git a/Plugin/Source/Presets/PresetManager.cpp b/Plugin/Source/Presets/PresetManager.cpp @@ -160,7 +160,8 @@ bool PresetManager::saveUserPreset (const String& name, const AudioProcessorValu presetXml->setAttribute ("name", "User_" + name); auto xmlParameters = std::make_unique<XmlElement> ("Parameters"); - forEachXmlChildElementWithTagName (*stateXml, p, "PARAM") + + for (auto* p : stateXml->getChildWithTagNameIterator ("PARAM")) { if (p->getAttributeValue (0) == "preset") p->setAttribute ("value", maxIdx);