<div dir="ltr">Hi!<div><br></div><div>1. If you grab chuck_win32.c and chuck_win32.h off the dac-ugen-replacement branch and rebuild, then can you successfully parse scripts with the &quot;global&quot; keyword? It looks like those never got regenerated on the main branch after the introduction of &quot;global&quot;. If you grab those two from dac-ugen-replacement and it starts working on your machine, then I&#39;ll be sure to forward that fix onto the main branch.</div><div>2. setGlobalString and many others are only present on the dac-ugen-replacement branch. If you need to work with global strings, you&#39;ll need to be operating from the dac-ugen-replacement branch for now! The master branch only contains basic accessors for global ints, floats, and Events.</div><div><br></div><div>Best,</div><div>Jack</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 2, 2018 at 3:23 PM Dana Batali &lt;<a href="mailto:dana.batali@gmail.com">dana.batali@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oops - here&#39;s the code that doesn&#39;t compile:<br><br><div>fun void PlayImpact( float intensity ) {</div><div> // play a collision sound...}</div><div><br></div><div>global Event impactHappened;</div><div>global float impactIntensity;</div><div>while( true ) {</div><div> impactHappened =&gt; now;</div><div> spork ~</div><div><br></div><div>Also: regarding chuck.h.  I did discover the valuable methods:  </div><div><br></div><div>setGlobalInt()</div><div>setGlobalFloat()</div><div>signalGlobalEvent()</div><div>broadcastGlobalEvent()</div><div><br></div><div><div>If I can get these to work, I&#39;ll be &quot;on my way&quot; (I think...).</div><br class="m_5157694928091037127inbox-inbox-Apple-interchange-newline"></div><div>fwiw: setGlobalString() appears to be missing...</div><div><br></div><div>Thanks again for your help!</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 2, 2018 at 3:16 PM Dana Batali &lt;<a href="mailto:dana.batali@gmail.com" target="_blank">dana.batali@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jack and thank you for your response!<div><br></div><div>Indeed the external keyword doesn&#39;t produce a syntax error, so that&#39;s a sign that miniAudicle is a bit behind the times.</div><div><br></div><div>Regarding builds, I have been building out of the master branch and am continuing to investigate why the global keyword is producing a syntax error in my own mainline builds.  If I replace global with external, i see this message:</div><div><br></div><div> [<a href="http://test.ck" target="_blank">test.ck</a>]:line(1): &#39;external&#39; keyword is deprecated. please use &#39;global&#39;</div><div><br></div><div>So something good is happening.  That said, the following .ck file, taken from the chunity paper, doesn&#39;t compile:</div></div><div dir="ltr"><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 2, 2018 at 10:07 AM Jack Atherton &lt;<a href="mailto:lja@ccrma.stanford.edu" target="_blank">lja@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi! <div><br></div><div>1. It&#39;s possible that the Windows build of miniAudicle is a little behind. I can&#39;t remember when it was built. Do things work in miniAudicle if you use the (now-deprecated) &quot;external&quot; keyword instead of &quot;global&quot;? </div><div>1a. The dac-ugen-replacement branch holds a few extra features that are used in Chunity but haven&#39;t been rolled into the main ChucK branch yet. You could start building your application from either the master branch or that branch, depending on your needs. (Check out chuck.h for a hint towards the extra features -- it adds a few more global types.)</div><div>2. There is a github repo for Chunity but it&#39;s still private at the moment. The place to start for developing a new application that embeds ChucK is to make sure you have access to whatever calls you need from core/chuck.h, built into whatever wrapper makes sense for your own application. Chunity doesn&#39;t really do much more special than that on the C++ side, other than a few gnarly nuances unique to Unity audio programming. I do think that the global keyword is activated for all (new) builds of ChucK -- there are quite a few tests for the command line version that use it. Sorry I don&#39;t know much about ChucK Racks, maybe Spencer could chime in about that!</div><div><br></div><div>Best,</div><div>Jack</div><div><br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr">On Thu, Aug 2, 2018 at 9:50 AM Dana Batali &lt;<a href="mailto:dana.batali@gmail.com" target="_blank">dana.batali@gmail.com</a>&gt; wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all - I&#39;m not sure if this is more of a developer question, but I&#39;ll try here first.<div><br></div><div>I&#39;m investigating integrating ChucK into a custom app and am intrigued by the new chunity integration.  The key aspects of chunity (for my purposes) are the new global keyword coupled with the ability to send/recv values (and events) from a controlling application.</div><div><br></div><div>I have two questions:</div><div><br></div><div>1. does the new global keyword actually work?  </div><div>In miniAudicle 1.4.0.0 (on windows), i have a one-line script:  </div><div><br></div><div>    global int myvar;</div><div><br></div><div>This produces an error message:</div><div><br></div><div> [untitled]:line(1).char(33): syntax error</div><div><br></div><div>which goes away with the removal of the global keyword.</div><div><br></div><div>1a. i do see a special branch of chuck called dac-ugen-replacement which may be hold the answers to my question.  Perhaps it&#39;s only a matter of the windows build being a little behind (due to the grammar change)?</div><br class="m_5157694928091037127m_-1807854531260661539m_-8008527509049568442m_4580312763055003604m_-2466504383391827027inbox-inbox-Apple-interchange-newline"><div>2. is there a github repository for the chunity plugin?  I don&#39;t see it in the standard chuck github.  It&#39;s possible that the global keyword is only activated for special builds of chuck and I might be able to get to the bottom of that question by inspecting the chunity builds.  Incidentally, I see that ChucK Racks addressed a set of similar problems in a different manner (by extending the chuck environment directly via PluginHost). My impression is that these two activities occurred in parallel and that there may be an advantage in combining the two approaches, perhaps ultimately producing a publicly available .so/.dll as part of the chuck distribution.</div><div><br></div><div>Advanced thanks for any comments or pointers on these questions! </div><div>And the usual giant kudos to the ChucK devs for producing such a cool thing!.</div><div><br></div><div>Regards,</div><div>Dana Batali</div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div></div></blockquote></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>