I am trying to understand why I am getting this error
PERF ERROR in instr 1 line 51: oscili: not initialised
I don’t get the error if I have the toneType channel set to one.
instr 1
ktone = chnget("toneType")
if (ktone == 1) then
goto oscOne
elseif (ktone == 2) then
goto oscTwo
elseif (ktone == 3) then
goto oscThree
endif
oscOne:
kEnv1 expsegr 0.0001, .00001, 1, 0.08, 0.7, 3, 0.5, 3, 0.000001
ap1 oscili kEnv1*0.5, 440
goto play
oscTwo:
kEnv1 expsegr 0.0001, .00001, 1, 0.5, 0.8, 3.7, 0.000001
ap1 oscili kEnv1*0.5, 880
goto play
oscThree:
kEnv1 expsegr 0.0001, .00001, 1, 0.97, 0.562, 2.4, 0.000001
ap1 oscili kEnv1*0.5, 1200
goto play
play:
outs ap1, ap1
endin