This stuff is so good.<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 9:52 AM, Lucas Zawacki <span dir="ltr"><<a href="mailto:lfzawacki@gmail.com">lfzawacki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Very interesting videos and blog! I've been thinking of exploring<br>
chuck for writing samples directly to the dac and these videos<br>
inspired me :)<br>
<br>
Step s => dac;<br>
0 => int t;<br>
<br>
while (true) {<br>
    // your one-liner here<br>
    t++; t*((t>>12|t>>8)&63&t>>4) $ float => s.next;<br>
    6::samp => now;<br>
}<br>
<br>
The result resembles the ones shown in the video (the code above is<br>
the first tune from the first video in the post) but is not so nice to<br>
my ears.<br>
<br>
Advancing time by 6 samples is the way I found to emulate a 8Khz<br>
sample rate, because I couldnt set it using the --srate parameter, but<br>
I dunno if this is correct at all. Also the Step ugen seems to want<br>
input between -1 and 1 and I don't know what's really happening to it<br>
when I feed him these absurd values... all I know is that it seems to<br>
work.<br>
<br>
Any suggestion on making this code better?<br>
<div><div></div><div class="h5">_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br>