[chuck-users] unexpected ADSR arg assignment errors
Atte André Jensen
atte.jensen at gmail.com
Wed Oct 10 14:55:37 EDT 2007
Jascha Narveson wrote:
> If I type this:
>
> ADSR env;
> 2.0 => env.attackTime;
>
> I get this error:
>
> [Untitled 2]:line(2): arguments type(s) do not match:
> [Untitled 2]:line(2): ... for function 'ADSR.attackTime(...)' ...
> [Untitled 2]:line(2): ...(please check the argument types)
>
> Even though the docs define attackTime for ADSR as a float:
>
> .attackTime - ( float , WRITE only ) - attack time
>
> Why?
The docs needs an update. The times in ADSR are now of type dur (which
makes much more sense BTW).
2::ms => env.attackTime;
--
peace, love & harmony
Atte
http://atte.dk | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk
More information about the chuck-users
mailing list