Most simple and smooth feedback delay

Type : Feedback delay
References : Posted by antiprosynthesis[AT]hotmail[DOT]com
Notes :
fDlyTime = delay time parameter (0-1)

i = input index
j = delay index
Code :
if( i >= SampleRate )
    i = 0;

j = i - (fDlyTime * SampleRate);

if( j < 0 )
    j += SampleRate;

Output = DlyBuffer[ i++ ] = Input + (DlyBuffer[ j ] * fFeedback);

Comments
from : antiprosynthesis[AT]hotmail[DOT]com
comment : This algo didn't seem to work on testing again, just change: ------------------------------------------------------------------- Output = DlyBuffer[ i++ ] = Input + (DlyBuffer[ j ] * fFeedback); ------------------------------------------------------------------- to --------------------------------------------------------------- Output = DlyBuffer[ i ] = Input + (DlyBuffer[ j ] * fFeedback); i++; --------------------------------------------------------------- and it will work fine.

from : antiprosynthesis[AT]hotmail[DOT]com
comment : Here's a more clear source. both BufferSize and MaxDlyTime are amounts of samples. BufferSize should best be 2*MaxDlyTime to have proper sound. - if( i >= BufferSize ) i = 0; j = i - (fDlyTime * MaxDlyTime); if( j < 0 ) j += BufferSize; Output = DlyBuffer[ i ] = Input + (DlyBuffer[ j ] * fFeedback); i++;

from : amalinaharif[AT]yahoo[DOT]com
comment : hi,can anyone help me with the c code for flanging effect using C6711 DSK board??

from : contact[AT]saschart[DOT]com
comment : None of these codes did not smooth the delay's when rate change. All crackling when rate delay change.