RedMixStereoMono mix 1 stereo channel and 1 mono channel in stereo


Inherits from: RedAbstractMix


req: Conductor quark

see also: RedMix, RedMixGUI,

RedMixMono, RedMixStereo,

RedMatrixMixer, RedMixer


*new(inA, inB, out, group, lag)

inA - first stereo input.  default= 0.

inB - second mono input.  default= 2.

out - stereo output.  default= 0.

group - nil boots the default server and uses the defaultGroup.  adds to tail.

lag - ramp for mix controllers in seconds.  default= 0.05.



//--

a= RedMixStereoMono(2, 4, 0);

b= Pbind(\degree, Pseq([0, 1, 5, 4, 3], inf), \dur, 0.25, \pan, Pseq([-1, 1], inf), \out, 2).play;

c= Pbind(\degree, Pseq([10, 11, 16, 15], inf), \dur, 0.25, \pan, -1, \out, 4).play;


a.cvs.mix.value= -0.9;

a.cvs.mix.value= 0.9;

a.cvs.lag.value= 2;

a.cvs.mix.value= 0;

a.cvs.amp.value= 0.2;

a.gui;


b.stop;

c.stop;

a.free;