| All performance statements in Csound run at the k-rate. If you
are producing or consuming an a-rate variable, then you take
a whole block of samples instead of a single one.
In your case,
apos = apos + astep
will be run as a loop like this one
for(i=0; i < ksmps; i++) apos[i] = apos[i] + astep[i];
But that loop will be called once every k-period (thus running
at the k-rate). Sometimes it's worth looking at a csound instrument
as having an implicit perf loop that runs at k-rate, updating all the
variables every time it iterates. The init variables of course are not
touched by this.
Victor
> the curious, I thought that apos = apos + astep would be updated at the
> a-rate, but it is actually done at the k-rate.
>
> --
> Mark
> _________________________________________
> When you get lemons, you make lemonade.
> When you get hardware, you make software.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
|