<div dir="ltr"><div>Okay, I finally found the documentation re usage... <a href="https://github.com/heuermh/lick/wiki">https://github.com/heuermh/lick/wiki</a><br><br></div><div>Shreds that just declare classes so that other shreds can instantiate &amp; use them... It makes my mind blur, but so it goes!<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 3:54 PM, Forrest Curo <span dir="ltr">&lt;<a href="mailto:treegestalt@gmail.com" target="_blank">treegestalt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;m gathering that I can just put &#39;machine.add(&lt;any of these classes in the directory that I want to use&gt;)&#39; and <br>that should work(?)<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 2:54 PM, Forrest Curo <span dir="ltr">&lt;<a href="mailto:treegestalt@gmail.com" target="_blank">treegestalt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay, I did find the github zip for tap-plugins -- but the later plugins are struggling; and I wasn&#39;t thinking of using them... so I&#39;ll assume that I&#39;m okay if I don&#39;t, for now.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 1:32 PM, Michael Heuer <span dir="ltr">&lt;<a href="mailto:heuermh@gmail.com" target="_blank">heuermh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Forrest Curo <span dir="ltr">&lt;<a href="mailto:treegestalt@gmail.com" target="_blank">treegestalt@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>&quot;Something more elaborate than branching on the value of a specific variable?&quot;<br><br></div>To use a text keyboard to trigger real-time changes in key, mode (&#39;major&#39;, &#39;minor&#39;, etc), record-&amp;-repeat-&amp;-vary (by scale degrees in whichever the current  key &amp; mode are), accelerate or slow playback, change target instrument for playback-and/or-midi-keyboard, dump or keep current loop, etc: <br>with some 36+ keys available for whatever organization of this works --<br></div>and I want to be able to modify the arrangement meanwhile so I don&#39;t trap myself into a bad design...<br><br></div>so running the text input through a maze of logic by ascii values seems too cumbersome. <br>I know, I could search-&amp;-replace, but finding a key value in a list<br></div><div>and changing the associated function<br></div><div>just seems a whole lot less ugly!<br>-------------------------<br><br></div><div>Um, I&#39;m now trying to install &#39;tap-plugins&#39; as a prerequisite for installing &#39;lick&#39; -- and the instructions for that are telling me, ~&#39;just cd into folder and run &#39;make&#39; -- but make can&#39;t find anything _to_ make! Do I really need those plugins to install &amp; use lick?<br></div></div></blockquote><div><br></div></span><div>No.  Without them chuck will complain when loading the <a href="http://import.ck" target="_blank">import.ck</a> file<br><br></div><div>$ chuck + <a href="http://import.ck" target="_blank">import.ck</a><br>...<br>[TapeDelay.ck]:line(26): cannot extend incomplete type &#39;Swh&#39;<br>[TapeDelay.ck]:line(26): ...(note: the parent&#39;s declaration must preceed child&#39;s)<br>[RubberBand.ck]:line(26): cannot extend incomplete type &#39;Ladspa&#39;<br>[RubberBand.ck]:line(26): ...(note: the parent&#39;s declaration must preceed child&#39;s)<br>&quot;LiCK imported.&quot; : (string)<br><br></div><div>but everything else will work fine.  And installing all of those plugins is a real mess, especially on OSX.  I should probably cut a docker image at some point.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>   michael<br></div></font></span><div><div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 12, 2015 at 11:41 AM, Spencer Salazar <span dir="ltr">&lt;<a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Doing functional stuff in ChucK can be pretty fun (and verbose), but for specifically switch-case structures, mostly these can be implemented e.g. as<div><br></div><div>if(var == 0) // case 0:</div><div>{ }</div><div>else if(var == 1) // case 1:</div><div>{ }</div><div>else // default:</div><div>{ }</div><div><br></div><div>You can&#39;t do fall-throughs or nutty things like Duff&#39;s device, but (making up a number) maybe 90% of switch-case uses I see are basically a slightly better-looking if-else. Are you doing something more elaborate than branching on the value of a specific variable? </div><div><br></div><div>spencer</div><div><br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 2:22 PM, Forrest Curo <span dir="ltr">&lt;<a href="mailto:treegestalt@gmail.com" target="_blank">treegestalt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>It looks far prettier than a mess of logical spaghetti!<br><br></div>But is this documented with examples for the help &amp; understanding of object-challenged geezers from the days of punch-card boxes converted twice/day to error-message listings?<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Oct 12, 2015 at 10:37 AM, Michael Heuer <span dir="ltr">&lt;<a href="mailto:heuermh@gmail.com" target="_blank">heuermh@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr">Forrest Curo <span dir="ltr">&lt;<a href="mailto:treegestalt@gmail.com" target="_blank">treegestalt@gmail.com</a>&gt;</span> wrote<div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Since switches have so far not been included, is there a way around this?<br><br></div>An array of Events?<br><br></div>An array of functions, either numbered or associative? How to declare and call such an array?<br></div></div></blockquote><div><br></div></span><div>ChucK doesn&#39;t have function pointers or similar, so I&#39;ve resorted to functors<br><br><a href="https://github.com/heuermh/lick/blob/master/lick/fn" target="_blank">https://github.com/heuermh/lick/blob/master/lick/fn</a><br><br></div><div>E.g.<br><br></div><div>class DoSomething extends Procedure {<br></div><div>  fun void run() { ... }<br></div><div>}<br></div><div>class DoSomethingElse extends Procedure {<br></div><div>  fun void run() { ... }<br></div><div>}<br></div><div><br></div><div>DoSomething doSomething;<br></div><div>DoSomethingElse doSomethingElse;<br><br></div><div>ArrayList procedures;<br>procedures.add(doSomething);<br></div><div>procedures.add(doSomethingElse);<br><br></div><div>while (true) {<br></div><div>  procedures.sample() $ Procedure @=&gt; Procedure procedure;<br></div><div>  procedure.run();<br></div><div>  1::second =&gt; now;<br></div><div>}<br></div><div><br><br></div><div>Yeah, it ain&#39;t pretty.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>   michael<br></div></font></span></div></div></div>
<br></div></div><span>_______________________________________________<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>
<br></span></blockquote></div><br></div>
<br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div>Spencer Salazar<br></div><div>Doctoral Candidate</div><div>Center for Computer Research in Music and Acoustics</div><div>Stanford University</div><div><br></div><div><a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a></div><div></div><div><a href="tel:%2B1%20831.277.4654" value="+18312774654" target="_blank">+1 831.277.4654</a><br></div><div><a href="https://ccrma.stanford.edu/~spencer/" style="color:rgb(17,85,204)" target="_blank">https://ccrma.stanford.edu/~spencer/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<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>
<br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>