[chuck-users] Using ADSR as a P(itch)envelope
herman verbaeten
hverb54 at hotmail.com
Wed Mar 4 12:49:46 EST 2020
Thanks a lot for both answers!
________________________________
Van: chuck-users-bounces at lists.cs.princeton.edu <chuck-users-bounces at lists.cs.princeton.edu> namens Andrew Telichan Phillips <a.telichanphillips at gmail.com>
Verzonden: woensdag 4 maart 2020 16:44
Aan: ChucK Users Mailing List <chuck-users at lists.cs.princeton.edu>
Onderwerp: Re: [chuck-users] Using ADSR as a P(itch)envelope
Hi Herman... this may not be the exact application you are looking for, given that you are using a buffer, but here is an example of how I have used the ADSR ugen as a pitch envelope:
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;
}
вт, 3 мар. 2020 г. в 10:31, Michael Heuer <heuermh at gmail.com<mailto:heuermh at gmail.com>>:
Hello Herman,
You can't chuck into a field/parameter, though I wish it were so
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<mailto: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
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200304/52e6381c/attachment.html>
More information about the chuck-users
mailing list