I am trying to use chnget and chnset to mix diffirent instruments but I get only silence of the lamps
instr 1
...
kSG1EnvAmp madsr iSG1EnvAmpAttack, iSG1EnvAmpDecay, iSG1EnvAmpSustain, iSG1EnvAmpRelease
kSG1EnvFilter madsr iSG1EnvFilterAttack, iSG1EnvFilterDecay, iSG1EnvFilterSustain, iSG1EnvFilterRelease
aSG1 vco2 p5*kSG1EnvAmp, p4, iSG1wav, kSG1PWM, kSG1Phase
aSG1FLp moogladder aSG1,kSG1FilterLpF * kSG1EnvFilter,kSG1FilterLpR
aSG1FHp bqrez aSG1FLp, kSG1FilterHpF * kSG1EnvFilter, kSG1FilterHpR, 1
; outs aSG1FHp, gaSG1FHp
chnset aSG1FHp, "Layer 1 Output"
endin
instr 3
; General
kSG1Amp chnget "SG1 Amp"
kSG2Amp chnget "SG2 Amp"
; Get input from Layer 1
aSG1Out chnget "Layer 1 Output"
aSG2Out chnget "Layer 2 Output"
; display kSG1Amp, .1, 3
; outs (aSG1 * kSG1Amp) + (aSG2 * kSG2Amp) ,(aSG1 * kSG1Amp) + (aSG2 * kSG2Amp)
outs aSG1Out, aSG1Out
endin
if i comment out the aout in instr1 i get sound , but if I dont I get silence, what am I doing wrong here ?
PS: complete code can be viewed here