[chuck-users] Getting Started with ChucK
tom at alltom.com
Tue Jul 21 02:53:00 EDT 2009
On Tue, Jul 21, 2009 at 2:41 AM, Andrew Turley<aturley at acm.org> wrote:
> Lucas, I agree that what I'm suggesting isn't necessarily in the
> spirit of ChucK as it is currently implemented. But imagine a
> situation in which the following was true:
> 1. Integer and Float values were objects.
> 2. These objects had a ".value()" method that returned the value of the object.
> 3. UGen objects had a ".value()" method that returned the current
> value of the UGen.
> As long as whatever you chucked to .freq had a ".value()" method, then
> you could do what I described. Every sample, the UGen would simply
> call "freq.value()" and get the current value of the frequency.
In ruck, I made all UGen attributes accept lambdas (anonymous
functions), which to me seems a natural extension to ChucK, but I got
the same response, that it wasn't very ChucK-like. What languages
besides SC allow you to do things like this?
More information about the chuck-users