Clean up parameter components initing
This commit is contained in:
parent
fbd337bf5d
commit
64ad16f8cb
@ -48,17 +48,12 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (Pa
|
|||||||
{
|
{
|
||||||
AudioProcessorParameterWithID* parid = dynamic_cast<AudioProcessorParameterWithID*>(pars[i]);
|
AudioProcessorParameterWithID* parid = dynamic_cast<AudioProcessorParameterWithID*>(pars[i]);
|
||||||
jassert(parid);
|
jassert(parid);
|
||||||
if (parid)
|
|
||||||
{
|
|
||||||
bool notifyonlyonrelease = false;
|
bool notifyonlyonrelease = false;
|
||||||
if (parid->paramID.startsWith("fftsize"))
|
if (parid->paramID.startsWith("fftsize") || parid->paramID.startsWith("numoutchans"))
|
||||||
notifyonlyonrelease = true;
|
|
||||||
if (parid->paramID.startsWith("numoutchans"))
|
|
||||||
notifyonlyonrelease = true;
|
notifyonlyonrelease = true;
|
||||||
m_parcomps.push_back(std::make_shared<ParameterComponent>(pars[i],notifyonlyonrelease));
|
m_parcomps.push_back(std::make_shared<ParameterComponent>(pars[i],notifyonlyonrelease));
|
||||||
addAndMakeVisible(m_parcomps.back().get());
|
addAndMakeVisible(m_parcomps.back().get());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//addAndMakeVisible(&m_specvis);
|
//addAndMakeVisible(&m_specvis);
|
||||||
setSize (1000, 30+(pars.size()/2)*25+200);
|
setSize (1000, 30+(pars.size()/2)*25+200);
|
||||||
|
Loading…
Reference in New Issue
Block a user