Yep, hack the chuck source, or... As with so many of use do with quarter, eighth, etc., Just add a one line definition at the top of your ChucK file(s): 100000000 * week => dur forever; // effectively forever or another alternative: Event forever; // if this is ChucKed to now, but never thrown, then it's truly forever Yer pal, PRC On Oct 24, 2012, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. a strange idea (David Ogborn) 2. Re: a strange idea (Michael Heuer) 3. Re: a strange idea (David Ogborn) 4. Re: a strange idea (Kassen) 5. ChucK code search, an experiment! (Tom Lieber) 6. Re: ChucK code search, an experiment! (Thomas McColgan)
----------------------------------------------------------------------
Message: 1 Date: Tue, 23 Oct 2012 22:55:37 -0400 From: David Ogborn
To: ChucK Users Mailing List Subject: [chuck-users] a strange idea Message-ID: Content-Type: text/plain; charset=us-ascii Hi all,
While preparing some sample code for the Cybernetic Orchestra, I hit upon a strange idea I thought I would share with this list. What if there were an instruction/built-in function in ChucK that yielded control forever?
A lot of sample code has something like this in it: while(1::minute=>now){}
It would be elegant if this could be written like this: forever => now;
Or something like that!
eternity => now; // ?
eternity; // ?
eternity(); // ?
I fully realize that this is violating the perfectly valid principle of "if it ain't broke don't fix it"!
Yours truly, David
------------------------------------------------------------------- Dr. David Ogborn, Assistant Professor Communication Studies & Multimedia Director, Cybernetic Orchestra & ESP Studio McMaster University, Hamilton, Canada
ogbornd --at-- mcmaster.ca http://davidogborn.net http://twitter.com/ogbornd http://esp.mcmaster.ca (Cybernetic Orchestra) 1-905-525-9140 ext 27603
------------------------------
Message: 2 Date: Tue, 23 Oct 2012 22:14:39 -0500 From: Michael Heuer
To: ChucK Users Mailing List Subject: Re: [chuck-users] a strange idea Message-ID: Content-Type: text/plain; charset=ISO-8859-1 David Ogborn
wrote: While preparing some sample code for the Cybernetic Orchestra, I hit upon a strange idea I thought I would share with this list. What if there were an instruction/built-in function in ChucK that yielded control forever?
A lot of sample code has something like this in it: while(1::minute=>now){}
It would be elegant if this could be written like this: forever => now;
Or something like that!
eternity => now; // ?
1::week => now;
is pretty long. :)
michael
------------------------------
Message: 3 Date: Tue, 23 Oct 2012 23:52:36 -0400 From: David Ogborn
To: ChucK Users Mailing List Subject: Re: [chuck-users] a strange idea Message-ID: Content-Type: text/plain; charset="us-ascii" Yeah, I know...
but it's still not eternity! :)
When I read 1::week => now, there is a little part of my brain that fast forwards to the moment one week from now when the code is supposed to end, and is bugged by the, admittedly completely hypothetical (at least in most cases), articulation of that moment...
Yours truly, David
On 2012-10-23, at 11:14 PM, Michael Heuer wrote:
David Ogborn
wrote: While preparing some sample code for the Cybernetic Orchestra, I hit upon a strange idea I thought I would share with this list. What if there were an instruction/built-in function in ChucK that yielded control forever?
A lot of sample code has something like this in it: while(1::minute=>now){}
It would be elegant if this could be written like this: forever => now;
Or something like that!
eternity => now; // ?
1::week => now;
is pretty long. :)
michael _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-------------------------------------------------------------------------------- Dr. David Ogborn,
Communication Studies & Multimedia, McMaster University Director, Cybernetic Orchestra & ESP Studio http://soundcloud.com/cyberneticorchestra http://esp.mcmaster.ca http://davidogborn.net http://twitter.com/ogbornd 1-905-525-9140 ext 27603