Suppose you want to write a signal to a bus. You’d have to specify the signal exactly in a SynthDef or the function youre playing e.g. :
SynthDef(\out, {
arg bus;
Out.ar(bus,SinOsc.ar());
})
//or
{arg bus; Out.ar(bus, SinOsc.ar())}
But what if i wanted a little bit more scalability and flexibility. Is it possible to make something that would take any signal and writes it to the bus, without having to describe the signal explicitly in the definition.
That would be something like this:
SynthDef(\out, {
arg bus, in;
Out.ar(bus,in);
}).add;
//or
{arg bus, in; Out.ar(bus, in)}
This example seems nonsensical, and it is, but it is to illustrate the problem i have: If you have a arbitrary signal, how do you write it to a bus?