|
I've been trying to use the goto statements to perform array processing, but
it seems to me they only jump forward.
For instance, shouldnt this sco write the value 0 in positions 0-15 of zak
space, for _each_ kontrol pass?
sr = 44100
kr = 44100
ksmps = 1
zakinit 1, 16
instr 1
kx init 0
loop:
zkw 0, kx
; printks "X=%f\n", 0.01, kx, 0, 0, 0
kx = kx+1
if (kx<16) kgoto loop
kx = 0
endin
Uncommenting the printks, I expected to see values in the range 0-15, but
instead they are always zero (the goto statement is not being executed)
What am I missing? how can I achieve the equivalent of processing a complete
array of values for each k-pass? How do I process the values of a whole
table (or a range of zak space positions) in a single k-cycle?
Should I use reinit for the loop-back part?
Thanks in advance, and sorry for the rather un-musical example
pedro |