From 5f1a04043b474377d7f63ea934948a9f9b8cb0b9 Mon Sep 17 00:00:00 2001 From: xenakios Date: Wed, 21 Mar 2018 14:37:15 +0200 Subject: [PATCH] Setting spectral module enabled no longer needs to notify host of generic state change. Repaint spectral module chain with timer to keep up to date with parameter changes done from the host. --- Source/PluginEditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index c53d9f6..6c04cff 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -356,6 +356,7 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id) { processor.m_free_filter_envelope->updateMinMaxValues(); m_free_filter_component.repaint(); + m_spec_order_ed.repaint(); } } @@ -926,9 +927,9 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev) if (r.contains(ev.x, ev.y)) { toggleBool(m_order[m_cur_index].m_enabled); - m_src->setSpectrumProcessOrder(m_order); - if (ModuleOrderOrEnabledChangedCallback) - ModuleOrderOrEnabledChangedCallback(); + //m_src->setSpectrumProcessOrder(m_order); + //if (ModuleOrderOrEnabledChangedCallback) + // ModuleOrderOrEnabledChangedCallback(); repaint(); return; }