Main Archive Specials Wiki | FAQ Links Submit Forum


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


Added on : 03/09/03 by 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.




Added on : 08/09/03 by 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++;




Added on : 06/11/06 by amalinaharif[ AT ]yahoo[ DOT ]com
Comment :
hi,can anyone help me with the c code for flanging effect using C6711 DSK board??



Added on : 01/07/16 by 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.



Add your own comment
Comments are displayed in fixed width, no HTML code allowed!
Email:

Comment:

Are you human?



Site created and maintained by Bram
Graphic design by line.out | Server sponsered by fxpansion