<span style="font-style: italic;">The easiest way to go about this is to make sure both </span><span style="font-style: italic;" id="st" name="st" class="st">shreds</span><span style="font-style: italic;">
come from&nbsp; the same .ck file. If they do they share the name space of
that file so any event or variable defined in there should be open to
both. The exception is things defined inside of functions (and in this
case all but one of those </span><span style="font-style: italic;" id="st" name="st" class="st">shreds</span><span style="font-style: italic;"> will be sporked functions). Something defined inside of a function will only be accessible to that function.
</span><br><br>Well, I am basically putting the lines of code that track the frequency in the same .ck file <br>where other lines of code send OSC messages to Python. I am still finding it hard to <br>understand what you mean by multiple &quot;shred&quot;(s) in the same .ck file. ???
<br><br>When I throw a .ck file into the VM, it starts a shred. Are you saying that throwing<br>one ck file into the VM can start many shreds? <br><br><br>-------&nbsp;&nbsp;&nbsp;&nbsp;-.-<br>1/f&nbsp;&nbsp; )))&nbsp;&nbsp;--.<br>-------&nbsp;&nbsp;&nbsp;&nbsp;...<br><a href="http://www.algomantra.com">
http://www.algomantra.com</a><br><br><br><br><div><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">Kassen</b> &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div><span class="q"><span class="gmail_quote">On 10/10/07, <b class="gmail_sendername">
AlgoMantra</b> &lt;<a href="mailto:algomantra@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">algomantra@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Okay, I beg your pardon in advance again......</blockquote></span><div><br><br>Why? That&#39;s what the list is for!<br>:¬)<br>&nbsp;<br></div><span class="q"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

1. Are the MAUI modules available only for miniAudicle, and not Audicle? That<br>would mean that one can only do this on Mac. I&#39;m a dodo using XP.</blockquote></span><div><br>Yeah, at least so far.<br>&nbsp;</div><span class="q">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2. Can two ChucK <span id="st" name="st" class="st">shreds</span> throw data at each other in the same VM, like two Python sockets?
<br>So I could read Microphone data in RMS off one shred and throw it towards a Python<br>GUI using another shred which is using OSC? Can two <span id="st" name="st" class="st">shreds</span> talk? </blockquote></span><div>
<br><br>Yes, you can. The easiest way to go about this is to make sure both <span id="st" name="st" class="st">shreds</span> come from&nbsp; the same .ck file. If they do they share the name space of that file so any event or variable defined in there should be open to both. The exception is things defined inside of functions (and in this case all but one of those 
<span id="st" name="st" class="st">shreds</span> will be sporked functions). Something defined inside of a function will only be accessible to that function.
<br><br>If the above is all you need I&#39;d keep it in a single file and use a event, the first shred would analyze the sound and broadcast the event whenever something interesting happens, the second would wait for the event and send the OSC. The sections in the manual and the /examples/ dir on events contain everything you&#39;ll need.
<br><br>It gets slightly harder if the two <span id="st" name="st" class="st">shreds</span> come from different files, if that is the case the trick is to make a public class containing a static event and have both <span id="st" name="st" class="st">
shreds</span> use a instance of that. This is a bit of a work-around but it does work. The one thing to mind is that non-primitive static objects in public classes have a issue with instantiation, to get around this you need to define the class, then define a event outside of it and asign this to it. Fortunately you only need to do that once and it&#39;ll be fine, there has been quite a bit of discussion about this on the list that you might want to look up (mainly on static arrays). If that&#39;s the route you take and you run into trouble get back to it and I or somebody else will talk you through it.
<br></div><br><br>Hope that helps,<br>Kas.<br></div>
<br>_______________________________________________<br>chuck-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br><br>