| Your assumption is not correct, because a-rate and k-rate are the same. The
difference is that an a-rate VARIABLE
(at ksmps > 1) is a vector, whereas a k-rate VARIABLE is always a scalar.
But the expression is evaluated once per
kperiod in both cases.
Hope this helps,
Mike
Original Message:
-----------------
From: Atte André Jensen atte.jensen@gmail.com
Date: Sun, 23 Dec 2007 00:03:28 +0100
To: csound@lists.bath.ac.uk
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
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
--------------------------------------------------------------------
myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting
|