R: [PD] resonant comb filter series

pix pix at test.at
Wed Feb 16 18:10:56 CET 2005

On Wed, Feb 16, 2005 at 04:35:09PM +0100, Davide Morelli wrote:
> Hi Derek,
> Thank you for the explanation, Karplus-Strong gives charimng sounds.
> But I can't make it resonate at the frequency I want.
> I made a little testing patch trying to follow your guidelines as much as I
> could.
> What's wrong?
> I googled a bit and I always found that deltime should be
> deltime (sec) = 1/Freq(Hz)
> example: to get a A440 sound I should
> deltime (msec) = (1/440)*1000
> why must we do
> deltime (msec) = (samplerate~ / Freq(Hz)) / 1000 instead?

you shouldn't have to do this, you would only need to involve
samplerate~ if you were calculating the number of samples in the delay
line. but you don't need to, you just give it milliseconds and vd~ sorts
out the annoying stuff internally.

the 1000/freq function you found should work as it gives you the
wavelength (in msecs) of the given frequency.

of course i haven't looked at the patch, i'm just shooting first and
asking questions later ;)


More information about the Pd-list mailing list