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&#39;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 @=&gt; items[0];<br>SawOsc saw @=&gt; items[1];<br><br>//later in my loop
<br><br>Std.rand(0,1) =&gt; int item;<br>items[item] @=&gt; UGen mysteryOscillator;<br>mysteryOscillator =&gt; 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&#39;t do.
<br><br><br>thanks for the help !<br>best<br>- j<br><br><br><br>