<br><br><div><span class="gmail_quote">On 9/20/07, <b class="gmail_sendername">Scott Wheeler</b> &lt;<a href="mailto:wheeler@kde.org">wheeler@kde.org</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>If you just want line-in / line-out support, honestly, I could hack that<br>into ChucK in a few minutes this afternoon.&nbsp;&nbsp;The problem isn&#39;t so much<br>getting stuff into and out of files, it&#39;s doing things with it once
<br>you&#39;ve got it.&nbsp;&nbsp;ChucK doesn&#39;t have any significant string manipulation<br>functions.&nbsp;&nbsp;You could use sort of a poor-man&#39;s delimiter by using one<br>data field per line and Std.atoi(), perhaps.<br><br>Even more interesting from my perspective would be the ability to
<br>serialize ordinals (and perhaps later objects) directly to files, but<br>that&#39;s a bit more work.</blockquote><div><br><br>You&#39;re right, we need a lot more... This little trick isn&#39;t meant as a replacement for anything but what it *could* do is allow one to quickly store something in a way that will survive the end of the VM and being able to get it back in there next time ChucK is started. Previously I couldn&#39;t think of a way to do this without also involving other things and terribly ugly and inefficient forms of abuse.
<br><br>Without proper string manipulation this is limited to the only sort of file ChucK can deal with properly being ChucK code, yes.... Still no parsing of strings by groups of letters to feed to the speech synth for example(I&#39;d like that...). But, this *would* allow for permanent storage of -say- patterns of ChucKian sequencers.
<br><br>It&#39;s a small thing, I admit, in retrospect I have no idea why I didn&#39;t think of it earlier but it also sound like a usefull thing so that&#39;s why I shared it.<br><br></div><br>Yours,<br>Kas.<br></div>