Beads - Bypassing a UGen

edited February 2018 in Library Questions

Is it possible to bypass a UGen so that signal data still runs through it unaffected? For example:

GranularSamplePlayer sample = new GranularSamplePlayer(ac, SampleManager.sample("sample.wav");
Gain gain = new Gain(ac, 1, 0.5);
pan = new Panner(ac, 0.4);
gain.addInput(sample);
pan.addInput(gain);
ac.out.addInput(pan);

Would it be possible to call something like pan.bypass() and still be able to let the signal go through the pan UGen and to ac.out? I tried UGen.pause() but that seems to not allow the signal through anymore.

Answers

  • Is there a value you can pass to pan() that makes it an identity operator, the same way multiplying by 1 doesn't change the input?

    "A pan value of -1 pans completely to the left, 1 pans completely to the right, and 0 results in center panning. "

    So, 0 then...

Sign In or Register to comment.