Add looping enabled parameter
This commit is contained in:
@ -174,6 +174,8 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
|
||||
1.0));
|
||||
}
|
||||
|
||||
addParameter(new AudioParameterBool("loop_enabled0", "Loop", true)); // 60
|
||||
|
||||
auto& pars = getParameters();
|
||||
for (const auto& p : pars)
|
||||
m_reset_pars.push_back(p->getValue());
|
||||
@ -682,6 +684,9 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, M
|
||||
|
||||
//m_stretch_source->setSpectralModulesEnabled(m_sm_enab_pars);
|
||||
|
||||
if (m_stretch_source->isLoopEnabled() != *getBoolParameter(cpi_looping_enabled))
|
||||
m_stretch_source->setLoopingEnabled(*getBoolParameter(cpi_looping_enabled));
|
||||
|
||||
m_stretch_source->setMainVolume(*getFloatParameter(cpi_main_volume));
|
||||
m_stretch_source->setRate(*getFloatParameter(cpi_stretchamount));
|
||||
m_stretch_source->setPreviewDry(*getBoolParameter(cpi_bypass_stretch));
|
||||
|
Reference in New Issue
Block a user