Delay added addional smoothing to the delay time parameter
The delay time paramter was responding very badly ui user input. This now has a much more plesant sound, not dis simular to a record being sped up or slowed down.
This commit is contained in:
@@ -118,7 +118,8 @@ bool DelayEffect::processAudioBuffer( sampleFrame* buf, const fpp_t frames )
|
||||
m_delay->setFeedback( *feedbackPtr );
|
||||
m_lfo->setFrequency( *lfoTimePtr );
|
||||
sampleLength = *lengthPtr * Engine::mixer()->processingSampleRate();
|
||||
m_delay->setLength( sampleLength + ( *amplitudePtr * ( float )m_lfo->tick() ) );
|
||||
m_currentLength = linearInterpolate( sampleLength, m_currentLength, 0.9999 );
|
||||
m_delay->setLength( m_currentLength + ( *amplitudePtr * ( float )m_lfo->tick() ) );
|
||||
m_delay->tick( buf[f] );
|
||||
|
||||
buf[f][0] *= m_outGain;
|
||||
|
||||
Reference in New Issue
Block a user