[chuck-users] Using ADSR as a P(itch)envelope

Michael Heuer heuermh at gmail.com
Tue Mar 3 10:30:35 EST 2020


Hello Herman,

You can't chuck into a field/parameter, though I wish it were so

https://github.com/ccrma/chuck/issues/110 <https://github.com/ccrma/chuck/issues/110>

This should work

SndBuf buf => dac;
ADSR env => blackhole;

spork ~ updateAtSampleRate();

fun void updateAtSampleRate() {
  while (true) {
    1::samp => now;
    env.value() => buf.rate;
  }
}

Cheers,

   michael


> On Mar 3, 2020, at 5:37 AM, herman verbaeten <hverb54 at hotmail.com> wrote:
> 
> Hi,
> 
> I was hoping to use an ADSR as a pichenvelope But Chuck doesn't want to accept it. Is there another way to achieve this?
> 
> SndBuf buf => dac;
> ADSR Penv => buf.rate;
> 
> Kind regards,
> 
> herman
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu <mailto:chuck-users at lists.cs.princeton.edu>
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users <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/20200303/8c058ebf/attachment-0001.html>


More information about the chuck-users mailing list