diff --git a/Source/PS_Source/StretchSource.cpp b/Source/PS_Source/StretchSource.cpp index e8afa47..3027914 100644 --- a/Source/PS_Source/StretchSource.cpp +++ b/Source/PS_Source/StretchSource.cpp @@ -12,7 +12,7 @@ StretchAudioSource::StretchAudioSource(int initialnumoutchans, AudioFormatManage m_resampler = std::make_unique(); m_resampler_outbuf.resize(1024*1024); m_inputfile = std::make_unique(m_afm); - m_specproc_order = { {0,false} , { 1, false} ,{2,true},{3,true},{4,true},{5,false},{6,true},{7,true} }; + m_specproc_order = { {0,false} , { 1, false} ,{2,true},{3,true},{4,true},{5,false},{6,true},{7,true},{8,false} }; setNumOutChannels(initialnumoutchans); m_xfadetask.buffer.setSize(8, 65536); m_xfadetask.buffer.clear(); diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 7eedc3e..d4dc143 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -914,6 +914,8 @@ void SpectralChainEditor::drawBox(Graphics & g, int index, int x, int y, int w, txt = "Filter"; if (m_order[index].m_index == 7) txt = "Compressor"; + if (m_order[index].m_index == 8) + txt = "Free filter"; if (index == m_cur_index) { g.setColour(Colours::darkgrey); diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index b00b8fc..65459df 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -255,6 +255,8 @@ void PaulstretchpluginAudioProcessor::setStateFromTree(ValueTree tree) bool step_enabled = tree.getProperty("specstepenabled" + String(i)); order.push_back({ (int)tree.getProperty("specorder" + String(i)), step_enabled }); } + if (ordersizegetSpectrumProcessOrder().size()) + order.emplace_back(8,false); m_stretch_source->setSpectrumProcessOrder(order); } getFromTreeProperties(tree, "waveviewrange", m_wave_view_range);