I expected that the following code would give a tone that would glide to a new frequency each second. But i think I might be misunderstanding the sync property because i'm not getting any audible output from this. Can anyone explain where i'm going wrong? Envelope env => SawOsc osc => dac; 3::ms => env.duration; 0 => osc.sync; // (0) sync frequency to input, while(true){ 1::second => now; Std.rand2f(100,300) => env.target; }
Hi Tomasz! The Envelope is what its name suggests: an envelope. You need a signal to be enveloped: a Step UGen may help you: Step st => Envelope env => SawOsc osc => dac; 3::ms => env.duration; 0 => osc.sync; // (0) sync frequency to input, 1 => st.next; while(true){ 1::second => now; Std.rand2f(100,300) => env.target; } Regards, Szilveszter (Hillaby) Tomasz Kaye's brain escribió:
I expected that the following code would give a tone that would glide to a new frequency each second. But i think I might be misunderstanding the sync property because i'm not getting any audible output from this. Can anyone explain where i'm going wrong?
Envelope env => SawOsc osc => dac; 3::ms => env.duration; 0 => osc.sync; // (0) sync frequency to input,
while(true){ 1::second => now; Std.rand2f(100,300) => env.target; } _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi Szilveszter,
Of course! the envelope's multiply their current input value by the
current internal value and send that to their output. Makes perfect
sense. Thanks.
(Do you know if there's a user editable version of the ChucK manual
online somewhere? I think some of the sections in the pdf could be
explained more clearly.)
2009/11/26 Szilveszter Tóth
Hi Tomasz!
The Envelope is what its name suggests: an envelope. You need a signal to be enveloped: a Step UGen may help you:
Step st => Envelope env => SawOsc osc => dac; 3::ms => env.duration; 0 => osc.sync; // (0) sync frequency to input,
1 => st.next;
while(true){ 1::second => now; Std.rand2f(100,300) => env.target; }
Regards, Szilveszter (Hillaby)
Tomasz Kaye's brain escribió:
I expected that the following code would give a tone that would glide to a new frequency each second. But i think I might be misunderstanding the sync property because i'm not getting any audible output from this. Can anyone explain where i'm going wrong?
Envelope env => SawOsc osc => dac; 3::ms => env.duration; 0 => osc.sync; // (0) sync frequency to input,
while(true){ 1::second => now; Std.rand2f(100,300) => env.target; } _______________________________________________ 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
participants (2)
-
Szilveszter Tóth
-
Tomasz Kaye's brain