<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I have the chugins, I can't use ladspa on windows this way, I also can't build the caps.<br>
</p>
<br>
<div class="moz-cite-prefix">On 9/7/2016 12:47 PM, Michael Heuer wrote:<br>
</div>
<blockquote cite="mid:CAOjYwMxVHO0mMVVi5aJvEKDg=_z3hdzz4dFPKGG4t0BeyO4faw@mail.gmail.com" type="cite">
<div dir="ltr">If you don't have the chugins or LADSPA plugin dependencies, everything else will still work fine.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Sep 7, 2016 at 12:44 PM, Colton Hill <span dir="ltr">
&lt;<a moz-do-not-send="true" href="mailto:colton-hill2014@hotmail.com" target="_blank">colton-hill2014@hotmail.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 bgcolor="#FFFFFF" text="#000000">
<p>it's a shame that the dependencies for that setup are linux only, I use windows.<br>
</p>
<div>
<div class="h5"><br>
<div>On 9/6/2016 9:51 PM, Michael Heuer wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>Hello Colton,<br>
<br>
</div>
Looks like a good start!&nbsp; Imports/includes are not so great in ChucK.&nbsp; In LiCK, I've resorted to a big
<a moz-do-not-send="true" href="http://import.ck" target="_blank">import.ck</a> file<br>
<br>
<a moz-do-not-send="true" href="https://github.com/heuermh/lick/blob/master/import.ck" target="_blank">https://github.com/heuermh/<wbr>lick/blob/master/import.ck<br>
</a><br>
</div>
There are a lot of functional-ish classes in LiCK, if you wanted to pass around play functions as objects.<br>
<br>
</div>
<div>class MmlParser<br>
{<br>
</div>
<div>&nbsp; Play @ play;<br>
<br>
</div>
<div>&nbsp; // ... parse stuff, spork ~ play.play(freq, nlength, qlength, vol), ...<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>class Play // &quot;abstract&quot; class, since there are no interfaces in ChucK<br>
{<br>
</div>
<div>&nbsp; fun void play(float freq, dur nlength, dur qlength, float vol)<br>
&nbsp; {<br>
</div>
<div>&nbsp;&nbsp;&nbsp; // empty<br>
</div>
<div>&nbsp; }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>class PlayNote extends Play<br>
{<br>
</div>
<div>&nbsp; SinOsc sin =&gt; ADSR adsr =&gt; dac;<br>
<br>
</div>
<div>&nbsp; fun void play(float freq, dur nlength, dur qlength, float vol)<br>
&nbsp; {<br>
</div>
<div>&nbsp;&nbsp;&nbsp; freq =&gt; sin.freq;<br>
</div>
<div>&nbsp;&nbsp;&nbsp; vol =&gt; sin.gain;<br>
</div>
<div>&nbsp;&nbsp;&nbsp; 1 =&gt; adsr.keyOn;<br>
</div>
<div>&nbsp;&nbsp;&nbsp; nlength =&gt; now;<br>
</div>
<div>&nbsp;&nbsp;&nbsp; 1 =&gt; adsr.keyOff;<br>
</div>
<div>&nbsp;&nbsp;&nbsp; qlength =&gt; now;<br>
</div>
<div>&nbsp; }&nbsp; <br>
}<br>
</div>
<div><br>
</div>
<div>MmlParser mmlParser;<br>
</div>
<div>PlayNote playNote;<br>
</div>
<div>playNote @=&gt; mmlParser.play;<br>
</div>
<div><br>
mmlParser.parse(input);<br>
</div>
<div><br>
</div>
<div>&nbsp;&nbsp; michael<br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 6, 2016 at 8:32 PM, Colton Hill <span dir="ltr">
&lt;<a moz-do-not-send="true" href="mailto:colton-hill2014@hotmail.com" target="_blank">colton-hill2014@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
I also want to make sure I have a customizable play function that will<br>
handle my playing. Here's the code I've been using for my current mml<br>
parser in chuck, actually does take a code string and a play function,<br>
and operates well. Only issue is including doesn't work... So have a test.<br>
<div>
<div><br>
<br>
On 9/6/2016 3:33 AM, Hans Åberg wrote:<br>
&gt;&gt; On 5 Sep 2016, at 23:16, Colton Hill &lt;<a moz-do-not-send="true" href="mailto:colton-hill2014@hotmail.com" target="_blank">colton-hill2014@hotmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I know regular expressions syntax, but I really don't know how I would<br>
&gt;&gt; manage to make an mml parser that actually works. Turn o4l8cdefg into<br>
&gt;&gt; octave 4, length 8, and c d e f g notes with an 8th note length since no<br>
&gt;&gt; length is specified. Then there's c4., which is c4^c8... Just bla…<br>
&gt; There are free MML parsers in C out there. Linking to ChucK, which is written in C&#43;&#43;, might be a way.<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; chuck-users mailing list<br>
&gt; <a moz-do-not-send="true" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">
chuck-users@lists.cs.princeton<wbr>.edu</a><br>
&gt; <a moz-do-not-send="true" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">
https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a moz-do-not-send="true" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton<wbr>.edu</a><br>
<a moz-do-not-send="true" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset> <br>
<pre>______________________________<wbr>_________________
chuck-users mailing list
<a moz-do-not-send="true" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.<wbr>princeton.edu</a>
<a moz-do-not-send="true" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.<wbr>edu/mailman/listinfo/chuck-<wbr>users</a>
</pre>
</blockquote>
</div>
</div>
</div>
______________________________<wbr>_________________ chuck-users mailing list <a moz-do-not-send="true" href="mailto:chuck-users@lists.cs.princeton.edu">
chuck-users@lists.cs.<wbr>princeton.edu</a> <a moz-do-not-send="true" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">
https://lists.cs.princeton.<wbr>edu/mailman/listinfo/chuck-<wbr>users</a> </blockquote>
</div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
</blockquote>
</body>
</html>