Hi,<br><br>I am total newbie to chucK. been trying to make time to play with it more ever since last year but somehow that time didnt arrive until now. <br><br>So for today's silly question I was wondering if there is some kind of implicit casting of objects in chuck?
<br><br>For instance I want to fill an array with specific UGens and then randomly retrieve one like so:<br><br>//array of UGens<br>UGen items[2];<br>SinOsc sin @=> items[0];<br>SawOsc saw @=> items[1];<br><br>//later in my loop
<br><br>Std.rand(0,1) => int item;<br>items[item] @=> UGen mysteryOscillator;<br>mysteryOscillator => dac;<br><br>Obviously this is not working right now and I am wondering if I am doing something wrong syntactically or whether I am trying to do something that ChucK can't do.
<br><br><br>thanks for the help !<br>best<br>- j<br><br><br><br>