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

View File

@ -131,7 +131,7 @@ private:
int m_pause_state = 0;
Range<double> m_playrange{ 0.0,1.0 };
int64_t m_rand_count = 0;
bool m_stream_end_reached = false;
int64_t m_output_silence_counter = 0;
File m_curfile;