RedAbstractMix abstract class


do not instantiate.  use its subclasses.


req: Conductor quark

see also: RedMix, RedMixGUI,

RedMixStereo, RedMixStereoMono

RedMatrixMixer, RedMixer


class methods:


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

inA - first mono 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.


instance methods:


free

free the mixer synth.

gui(parent, position)

create a RedMixGUI.


instance variables:


<group

the group in use.

<cvs

dictionary of CVs:

inA - input bus offset

inB - second bus offset

out - output bus offset

mix - mix control -1 to 1

amp - volume 0 to 1

lag - ramp time in seconds for mix and amp

<args


subclass responsibility:


*def



//--

a= RedMixMono(2, 4, 0);

b= Pbind(\degree, Pseq([0, 1, 5, 4, 3], inf), \dur, 0.25, \pan, -1, \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.args

a.gui


b.stop;

c.stop;

a.free;