[email protected] wrote:
> I'm pretty sure it's not clipping, i have taken the signal down in
> level.
>
> I am only allowing an integer number of sample delays, would it be
> worth using a higher resolution that that? I thought about using linear
> interpolation, but when I programmed the effect in Matlab using integer
> sample delays it sounded fine.
I was guessing that the "police siren" was caused by the small jumps
when you switch from one tap in your delay line to the next.
You need interpolation to make smaller steps, but you should avoid
linear interpolation for audio unless the sampling frequency is very
high. (Most interpolation problems become easier if the highest
frequency is small wrt the sampling frequency.)
"Normal" sampling frequencies require the use of cleverer
interpolation. I'm sure one of the other comp.dsp regulars can help
you with that.
Regards,
Allan