| Mike Berry answered pete moss:
>
> On Wed, 17 Dec 1997, pete moss wrote:
>
> > i would also like to add that A and K rates usually seem to be assigned
> > variables that are series (or arrays).
> >
> > pete
>
> This is basically wrong.
Yes. I think the talk of "variables that are series" perhaps springs
from reading the manual on this topic. It says "prefixes k or a denote
control (scalar) and audio (vector) values..."
It should be added: "respectively" (this will actually become apparent
from the list that follows, but it's still a sloppy formulation).
Now this is informative for programmers, but perhaps less so for others.
Internally, Csound will work through its list of active orchestra
instruments at K(ontrol) rate. At each such pass, audio (a-rate data)
is generated, k-rate variables are updated (well, generated), the list
of instruments is maintained, etc.
Audio rate data is generated in small blocks inside each instrument.
Eg inside an oscil, if sr=44100 and kr=4410, then 10 samples will be
generated at each k-rate pass, using the current values of k-rate
variables.
This block of audio data is called a vector, or array.
And if an opcode takes a-rate input, it will use the values from such a
data block (vector), rather than one single value, to work out its own
a-rate data.
Hope this could be of help to somebody.
re |