[chuck-users] one-liners

Matt B. matthew.biddle at gmail.com
Tue Oct 11 21:27:09 EDT 2011


This stuff is so good.

On Wed, Oct 12, 2011 at 9:52 AM, Lucas Zawacki <lfzawacki at gmail.com> wrote:

> Very interesting videos and blog! I've been thinking of exploring
> chuck for writing samples directly to the dac and these videos
> inspired me :)
>
> Step s => dac;
> 0 => int t;
>
> while (true) {
>    // your one-liner here
>    t++; t*((t>>12|t>>8)&63&t>>4) $ float => s.next;
>    6::samp => now;
> }
>
> The result resembles the ones shown in the video (the code above is
> the first tune from the first video in the post) but is not so nice to
> my ears.
>
> Advancing time by 6 samples is the way I found to emulate a 8Khz
> sample rate, because I couldnt set it using the --srate parameter, but
> I dunno if this is correct at all. Also the Step ugen seems to want
> input between -1 and 1 and I don't know what's really happening to it
> when I feed him these absurd values... all I know is that it seems to
> work.
>
> Any suggestion on making this code better?
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20111012/33091b83/attachment-0001.htm>


More information about the chuck-users mailing list