It's simple, we see an example instr signal prints "signal\n" endin instr pvsdelay prints "delay\n" endin instr reverbx prints "reverb\n" endin i1 "signal" 0 1 Which are the numbers of the instruments ? To get the answer we start csound with the `-v' (verbose) option and we look for the lines "uses instrument" > csound -v test.csd 2>&1|grep 'uses instrument' instr signal uses instrument number 1 instr pvsdelay uses instrument number 2 instr reverbx uses instrument number 3 wow, incresing numbers beginning from 1. Try ... i1 0 1 i2 1 1 i3 2 1 ... and the result is ... signal B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.0 new alloc for instr pvsdelay: delay B 1.000 .. 2.000 T 2.000 TT 2.000 M: 0.0 new alloc for instr reverbx: reverb B 2.000 .. 3.000 T 3.000 TT 3.000 M: 0.0 ... It works! Giorgio, you can now modify your csd file with ;; if "signal" is the first instr #define SIGNAL #1# #define TURNOFF #123# gkOnOff init $SIGNAL FLpanel "Live electronics GUI",750,400,100,100,1,-1,-1 gkOnOff,ihOnOff FLbutton "On/Off",$SIGNAL,$TURNOFF,22,100,30,630,360,0,gkOnOff,0,-1 FLpanelEnd FLrun ... instr $TURNOFF turnoff2 $SIGNAL,0,0 turnoff endin ... tito On Sat, Dec 17, 2011 at 03:21:19AM -0800, Giorgio Zucco wrote: > Hi,I'm making a gui for a live performance in which I make a great use of > connect opcode, I would like a simple On / Off button to activate the GUI > with turnoff,for example : > > gkOnOff,ihOnOff FLbutton "On/Off",1,0,22,100,30,630,320,0,1,0,-1 > > the ending code : 0,1,0,-1 not take as an argument named instrument but > numbers,some other ideas?thanks! > > Giorgio Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"