Added duplicate method for breakpoint envelope. NOTE : the copy is not fully implemented yet. Get free filter envelope duplicate for use with offline rendering.

This commit is contained in:
xenakios
2018-06-05 21:40:03 +03:00
parent c010a4d48f
commit 1b4c75df0a
2 changed files with 11 additions and 0 deletions

View File

@ -467,6 +467,8 @@ String PaulstretchpluginAudioProcessor::offlineRender(File outputfile)
File outputfiletouse = outputfile.getNonexistentSibling();
int numoutchans = *getIntParameter(cpi_num_outchans);
auto ss = std::make_shared<StretchAudioSource>(numoutchans,m_afm,m_sm_enab_pars);
shared_envelope free_env = m_free_filter_envelope->duplicate();
ss->setFreeFilterEnvelope(free_env);
int blocksize = 2048;
ss->setAudioFile(m_current_file);