Rob;<br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote">I think what you meant was &quot;When the shred a UGen was defined in exits *NORMALLY* the UGen will be disconnected from anything it connected to...&quot;  To test that, we simply let the player shred exit (without unchucking the dac):<br>

</div></blockquote><div><br>I think I&#39;d go as far as saying &quot;When the shred a UGen was defined in exits the UGen *SHOULD* be disconnected from anything it connected to...&quot; :-)<br><br>In the last version, for example, it wasn&#39;t true in all cases, particularly not when multiple connections existed. There is at least one exception, which is Ugens that are static members of public classes (these are useful). I believe the general case might be that UGens that can no longer be addressed are disconnected but that&#39;s not true for something like this;<br>

<br>repeat(3)<br>  {<br>  SinOsc s =&gt; dac;<br>  .3 =&gt; s.gain;<br>  Std.rand2f(200, 2000) =&gt; s.freq;<br>  }<br>second =&gt; now;<br><br>In that particular case you get three UGens that can&#39;t be addressed any more after this yet will run while the shred does. I&#39;m not 100% sure that should be desired behaviour but there is no big issue with it either as hopefully people won&#39;t do this if that behaviour is unwanted.<br>

 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote">And yep, sure enough, the sound stops after 1 second.  <br>
<br>
So the moral of the story: if you terminate a shred via exit(), it does NOT get the benefit of a standard shred clean-up.<br><br></div></blockquote><div><br>Hmmmmm, right now I&#39;m inclined to say that the moral of this story is &quot;take care of the sense and the sounds will take care of themselves&quot; and ChucK isn&#39;t taking care of the sense in all cases.<br>
<br>This case, for example, seems downright nonsensical to me; this is a plain bug. In the Mini in both the new and the last version the sound keeps going even after the mother shred exited.<br><br>So; the &quot;slight exception&quot; should not be with me but with ChucK and you found a bug. Congratulations!<br>
<br>Yours,<br>Kas.<br></div></div><br>