Re: [chuck-users] chuck neophyte trying to remove clicks via Envelope patch
Try this simple fix: Std.rand2f(0,1) => float g; // g => s1.gain; // Don't // g => s2.gain; // set the // g => s3.gain; // oscillator gains // g => s4.gain; // individually // which causes clicks g => e.target; // let the envelope do the smoothing
Nice, with .sync. Just a quick question, though, out of curiosity.
Does it .sync at sample rate, then? I can't believe I never took
advantage of that before.
Andrew
On Wed, Nov 25, 2009 at 10:53 AM, Perry R Cook
Try this simple fix:
Std.rand2f(0,1) => float g; // g => s1.gain; // Don't // g => s2.gain; // set the // g => s3.gain; // oscillator gains // g => s4.gain; // individually // which causes clicks
g => e.target; // let the envelope do the smoothing _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Andrew, Nice, with .sync. Just a quick question, though, out of curiosity.
Does it .sync at sample rate, then? I can't believe I never took advantage of that before.
I'll assume that was one for me, and not about the quoted text from Perry? Yes, .sync refers to the sample-rate input the osc receives. The UGen can react to this in one of a few quite different ways. In the case of the fm modulation it adds the input to it's set .freq() and uses the result as it's frequency. This is good for modulation but with a .freq() of 0Hz the oscillator will use the input value as it's frequency. The only thing you then need is to write the desired frequency to the Envelope's target and you have a audio-rate glide. Kas.
participants (3)
-
Andrew C. Smith
-
Kassen
-
Perry R Cook