From 6b09d11d49161ce9a869effb595ece789e5504b4 Mon Sep 17 00:00:00 2001 From: xenakios Date: Wed, 21 Mar 2018 13:43:03 +0200 Subject: [PATCH] Change the initial order of spectral modules to make the compressor be the last module. This is way too messy like this...But maybe this was the last time this needed to be done... --- Source/PS_Source/ProcessedStretch.cpp | 4 ++-- Source/PluginEditor.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/PS_Source/ProcessedStretch.cpp b/Source/PS_Source/ProcessedStretch.cpp index a1341bb..5377b75 100644 --- a/Source/PS_Source/ProcessedStretch.cpp +++ b/Source/PS_Source/ProcessedStretch.cpp @@ -118,9 +118,9 @@ void ProcessedStretch::process_spectrum(REALTYPE *freq) spectrum_spread(nfreq,samplerate,m_tmpfreq1,m_infreq.data(), freq, pars.spread.bandwidth); if (e.m_index == 6 && *e.m_enabled == true) spectrum_do_filter(pars,nfreq,samplerate,m_infreq.data(), freq); - if (e.m_index == 7 && *e.m_enabled == true) - spectrum_do_compressor(pars,nfreq, m_infreq.data(), freq); if (e.m_index == 8 && *e.m_enabled == true) + spectrum_do_compressor(pars,nfreq, m_infreq.data(), freq); + if (e.m_index == 7 && *e.m_enabled == true) spectrum_do_free_filter(m_free_filter_envelope, nfreq, samplerate, m_infreq.data(), freq); } }; diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 7612c53..6f1501b 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -81,7 +81,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau if (i == cpi_filter_low || i == cpi_filter_high) group_id = 6; if (i == cpi_compress) - group_id = 7; + group_id = 8; if (i == cpi_spreadamount) group_id = 5; if (i == cpi_frequencyshift) @@ -91,7 +91,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau if (i == cpi_freefilter_scaley || i == cpi_freefilter_shiftx || i == cpi_freefilter_shifty || i == cpi_freefilter_tilty || i == cpi_freefilter_randomy_amount || i == cpi_freefilter_randomy_numbands || i == cpi_freefilter_randomy_rate) - group_id = 8; + group_id = 7; m_parcomps.back()->m_group_id = group_id; addAndMakeVisible(m_parcomps.back().get()); } @@ -1010,9 +1010,9 @@ void SpectralChainEditor::drawBox(Graphics & g, int index, int x, int y, int w, txt = "Spread"; if (m_order[index].m_index == 6) txt = "Filter"; - if (m_order[index].m_index == 7) + if (m_order[index].m_index == 8) txt = "Compressor"; - if (m_order[index].m_index == 8) + if (m_order[index].m_index == 7) txt = "Free filter"; if (index == m_cur_index) {