Step step => ADSR pitchEnv => SinOsc sine => Gain gain => dac;
0.9 => gain.gain;
440 => step.next;
(.005::second, 0.15::second, 1.0, 0.5::second) => pitchEnv.set;
while (true)
{
pitchEnv.keyOn();
10::ms => now;
pitchEnv.keyOff();
800::ms => now;
}
_______________________________________________Hello Herman,
You can't chuck into a field/parameter, though I wish it were so
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@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@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users