| Eli Brandt wrote:
>
> Stephen Brandon - SysAdmin wrote:
> > sr = 22050.000000, kr = 1000.000000, ksmps = 22.049999
>
> As you probably know, 22.05 can't be represented exactly. I'm not
> certain what's going on in your code fragment
Um, let it be known that ksmps must be integer, ok?
eg sr = 22050, kr = 294, ksmps = 75, etc.
(If you're poking around in the code, you'll find that
ksmps is used as a loop counter: control variables are
updated at the lower k-rate (kr), then each instrument
computes ksmps number of samples using these values.)
> (Might "ksmps = sr/kr" work better? Dunno whether it's even legal.)
Should be, but as you say, unnecessary.
hth,
re |