Added free filter envelope random transform
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user