Csound Csound-dev Csound-tekno Search About

[Csnd] Can anyone spot the problem?

Date2014-09-09 10:11
FromRory Walsh
Subject[Csnd] Can anyone spot the problem?
When kinvert is set to 1 both the left and right channels should be
inverted. But instead the audio stops? If I remove the cggoto
conditions and simply multiply each channel by -1 it works as you
would expect. Am I missing something here?



-+rtaudio=jack -odac


sr = 44100
ksmps = 64
nchnls = 2
0dbfs=1

instr 1
a1 oscil .7, 500, -1
a2 oscil .7, 600, -1
kinvert init 1

cggoto (kinvert==1), invert
goto noinvert

invert:
a1=a1*-1
a2=a2*-1

noinvert:
outs a1, a2

endin



f1 0 1024 10 1
i1 0 3600