Just trying to work out how to multiplex (iterate) multiple oscillators into an array using loop_lt:
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
gaArr[] init 3 ;make global audio array
instr 1
kEnv madsr .1, .2, .6, .4
iNdx init 0
loop:
prints "play instance %d\\n", int(iNdx)
gaArr[int(iNdx)] oscil p5, p4 + (1000*int(iNdx))
loop_lt iNdx, 1, 3, loop
out (gaArr[0]+gaArr[1]+gaArr[2])/3*kEnv
endin
Currently I can only hear the last gaArr[2]
oscillator?