If you really wanna see the math, or at least two different versions that involve using sampling rate, see here:
http://www-ccrma.stanford.edu/~serafin/320/assign5/Implementing_basic_Karplu...
and here:
http://www.sfu.ca/~truax/reson.html
derek
pix wrote:
On Wed, Feb 16, 2005 at 04:35:09PM +0100, Davide Morelli wrote:
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.