Attempt adding control of refresh rate of random phases but some problem getting the plugin parameter to work

This commit is contained in:
xenakios
2018-11-15 20:14:56 +02:00
parent b192c720d7
commit e5af6e1da1
6 changed files with 60 additions and 7 deletions

View File

@ -184,6 +184,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
addParameter(new AudioParameterFloat("dryplayrate0", "Dry playrate",
NormalisableRange<float>(0.1f, 8.0f,
dprate_convertFrom0To1Func, dprate_convertTo0To1Func), 1.0f)); // 62
addParameter(new AudioParameterInt("phaserefreshrate0", "Phase randomization rate", 1, 32, 32)); // 63
auto& pars = getParameters();
for (const auto& p : pars)
m_reset_pars.push_back(p->getValue());
@ -737,6 +738,8 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, M
m_free_filter_envelope->m_transform_y_random_rate = *getIntParameter(cpi_freefilter_randomy_rate);
m_free_filter_envelope->m_transform_y_random_amount = *getFloatParameter(cpi_freefilter_randomy_amount);
m_stretch_source->setPhaseRefreshRate(*getIntParameter(cpi_phase_refresh_rate));
//m_stretch_source->setSpectralModulesEnabled(m_sm_enab_pars);
if (m_stretch_source->isLoopEnabled() != *getBoolParameter(cpi_looping_enabled))