[chuck-users] unexpected ADSR arg assignment errors

Jascha Narveson jnarveson at wesleyan.edu
Wed Oct 10 15:16:12 EDT 2007


ah, so.

thanks!

- jascha


On Oct 10, 2007, at 2:55 PM, Atte André Jensen wrote:

> 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
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>



More information about the chuck-users mailing list