I don’t get why there is the same bus arg for the Replace.out ,wouldn’t 0 be suffice to route the effect to the main out ?
When I set the out of an effects to the same arg as it’s input ( like yo do in your example ) I hear nothing because the effect stays on that bus
Here’s a simple distortion effect
Set out to arg.bus and you won’t hear the processed sound
`
(
SynthDef(\dister,
{|amt=1,bus,gain=0.4|
var sig;
sig=In.ar(bus,2);
sig=(sig*amt).tanh;
sig=sig*gain;
sig=Out.ar(0,sig);
}).add
)
~distro=Synth(\dister,[\bus,~grunge,\amt,10,\gain,0.5])
~distro.set(\amt,0.5);
~distro.set(\amt,10,\gain,0.3);
~distro.set(\amt,6,\gain,0.3);
~distro.free
~grunge=Bus.audio(s,2)`