Play function on specific channel

Hi,

I am new to SC, so sorry for asking something trivial but I could not figure it out…

Playing a function like this:

{ SinOsc.ar }.play

plays the sine-wave on my left channel.

{ SinOsc.ar!2 }.play

plays on both channels, but what would be the syntax if I want to play it on the right channel only?

I am aware that this play-syntax is merley syntatic sugar for defining a SynthDef, instantiating it and so on, so there surely is a way to route the output to the right channel if I would be more verbose, but I wonder if there is a “sugared” way to do it.

Alternatively is there a UGen that simply produces silence, so that you could do something like

{ [Silence.ar, SinOsc.ar] }.play

Many thanks!

If you check the documentation for Function.play, you’ll see that its second argument specifies an output Bus, so I think what you’re looking for is:

{ SinOsc.ar }.play(s, 1)

You were close, it’s Silent.ar. You can also just do:

{ [0, SinOsc.ar] }.play

Great, thanks a lot.

1 Like