Mark plugin dirty when changing spectral module order or module enabled state. Readme change.
This commit is contained in:
parent
aed9e459cf
commit
b8c70ddd30
@ -106,6 +106,10 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
|
|||||||
m_parcomps[i]->setHighLighted(false);
|
m_parcomps[i]->setHighLighted(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
m_spec_order_ed.ModuleOrderOrEnabledChangedCallback = [this]()
|
||||||
|
{
|
||||||
|
processor.setDirty();
|
||||||
|
};
|
||||||
startTimer(1, 100);
|
startTimer(1, 100);
|
||||||
startTimer(2, 1000);
|
startTimer(2, 1000);
|
||||||
startTimer(3, 200);
|
startTimer(3, 200);
|
||||||
@ -749,6 +753,8 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev)
|
|||||||
{
|
{
|
||||||
m_order[m_cur_index].m_enabled = !m_order[m_cur_index].m_enabled;
|
m_order[m_cur_index].m_enabled = !m_order[m_cur_index].m_enabled;
|
||||||
m_src->setSpectrumProcessOrder(m_order);
|
m_src->setSpectrumProcessOrder(m_order);
|
||||||
|
if (ModuleOrderOrEnabledChangedCallback)
|
||||||
|
ModuleOrderOrEnabledChangedCallback();
|
||||||
repaint();
|
repaint();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -774,6 +780,8 @@ void SpectralChainEditor::mouseDrag(const MouseEvent & ev)
|
|||||||
m_cur_index = new_index;
|
m_cur_index = new_index;
|
||||||
m_did_drag = true;
|
m_did_drag = true;
|
||||||
m_src->setSpectrumProcessOrder(m_order);
|
m_src->setSpectrumProcessOrder(m_order);
|
||||||
|
if (ModuleOrderOrEnabledChangedCallback)
|
||||||
|
ModuleOrderOrEnabledChangedCallback();
|
||||||
}
|
}
|
||||||
m_drag_x = ev.x;
|
m_drag_x = ev.x;
|
||||||
repaint();
|
repaint();
|
||||||
|
@ -147,6 +147,7 @@ public:
|
|||||||
void mouseDrag(const MouseEvent& ev) override;
|
void mouseDrag(const MouseEvent& ev) override;
|
||||||
void mouseUp(const MouseEvent& ev) override;
|
void mouseUp(const MouseEvent& ev) override;
|
||||||
std::function<void(int)> ModuleSelectedCallback;
|
std::function<void(int)> ModuleSelectedCallback;
|
||||||
|
std::function<void(void)> ModuleOrderOrEnabledChangedCallback;
|
||||||
private:
|
private:
|
||||||
StretchAudioSource * m_src = nullptr;
|
StretchAudioSource * m_src = nullptr;
|
||||||
bool m_did_drag = false;
|
bool m_did_drag = false;
|
||||||
|
@ -8,7 +8,7 @@ Released under GNU General Public License v.2 license.
|
|||||||
|
|
||||||
History :
|
History :
|
||||||
|
|
||||||
02-07-2018 1.0.0
|
02-09-2018 1.0.0
|
||||||
-Control/Command click on waveform seeks (if click within active play range)
|
-Control/Command click on waveform seeks (if click within active play range)
|
||||||
-Moved prebuffering amount menu to prebuffering meter (click to show)
|
-Moved prebuffering amount menu to prebuffering meter (click to show)
|
||||||
-Added dummy parameter to tell the host the plugin state has changed when the imported file has changed etc
|
-Added dummy parameter to tell the host the plugin state has changed when the imported file has changed etc
|
||||||
|
Loading…
Reference in New Issue
Block a user