function Delay = iircomb(guitar,delay_in_ms, g, fs);

delay_in_seconds = delay_in_ms./1000;% Converts delay time from ms to s 
 
delay = round(delay_in_seconds.*fs);% Changes delay from samples to seconds 
 
Delayline=zeros(delay,1); % memory allocation for length 10 
for n=1:length(guitar);
    Delay(n)=guitar(n)+g*Delayline(delay); 
    Delayline=[Delay(n);Delayline(1:delay-1)]; 
end;

