I’m interested in using the Pitch ugen to provide the frequency for an oscillator like SinOsc. I only want to hear output when the Pitch output array index 1 is equal to 1, so I can use that as a mul value. The problem is that when the value goes to 0, the transition is instantaneous. Is there any way I can pipe that transition through another UGen to force it to change more gradually, so I don’t hear a pop in my audio?
Here’s what I’m working with at the moment.
{
var sig, pitch;
sig = SoundIn.ar(8, 0.5);
pitch = Pitch.kr(sig, 10.0);
pitch.poll;
sig = sig + SinOsc.ar(pitch[0] * 0.5, 0, 0.2 * pitch[1], 0);
}.play;