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.

This commit is contained in:
xenakios 2018-03-21 14:37:15 +02:00
parent d195b58d9c
commit 5f1a04043b

View File

@ -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;
}