Csound Csound-dev Csound-tekno Search About

[Csnd] basic k-rate question

Date2007-12-22 23:03
FromAtte André Jensen
Subject[Csnd] basic k-rate question
Hi

Am I correct in assuming that the following (at ksmps > 1):

kdrift	=	1 + klfo * idrift
aosc	vco2	10000, ifreq * kdrift

is cheaper than:

aosc	vco2	10000, ifreq * (1 + klfo * idrift)

My guess is that in the second version "1 + klfo * idrift" gets 
calculated at a-rate, whereas in the first version it gets calculated at 
k-rate, is that correct?

-- 
peace, love & harmony
Atte

http://atte.dk       | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk