ReplaceOut VS Out

Hi everyone,

What’s the difference in these 2 situations?

  1. SynthDef with out.ar using a bus → SynthDef efx with ReplaceOut.ar using in.ar and a bus
  2. SynthDef with out.ar using a bus → SynthDef efx with Out.ar using in.ar and a bus

The number 2 distorts, the number 1 works fine?!
the order of esecution is correct… I can’t understand how it works without having doubts…
Is there a clear way to understand that?

Thank you very much in advance!

Out mixes the contents of the bus with the new signal and ReplaceOut replaces the contents of the bus with the new signal, so it makes sense that the one with Out is clipping. It has more sound in it:

(
{
	Out.ar(0, WhiteNoise.ar(0.1));
}.play(s, addAction:'addToTail');

{
	Out.ar(0, SinOsc.ar(220, 0, 0.1));
}.play(s, addAction:'addToTail');

)

(
	{
		Out.ar(0, WhiteNoise.ar(0.1));
	}.play(s, addAction:'addToTail');
	
	{
		ReplaceOut.ar(0, SinOsc.ar(220, 0, 0.1));
	}.play(s, addAction:'addToTail');
	
)

Sam

1 Like