Added free filter envelope random transform

This commit is contained in:
xenakios
2018-03-03 17:22:23 +02:00
parent 536b1ccaf1
commit c391a2c0af
6 changed files with 51 additions and 5 deletions

View File

@ -253,6 +253,11 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer
{
readed = m_inputfile->readNextBlock(m_file_inbuf, readsize, m_num_outchans);
}
if (m_rand_count % (int)m_free_filter_envelope->m_transform_y_random_rate == 0)
{
m_free_filter_envelope->updateRandomState();
}
++m_rand_count;
auto inbufptrs = m_file_inbuf.getArrayOfWritePointers();
REALTYPE onset_max = std::numeric_limits<REALTYPE>::min();
#ifdef USE_PPL_TO_PROCESS_STRETCHERS