[mixer-output] that implements a mute. Normal volume
control floats are received on [r mast] and passed through a multiplier.
The second inlet [r mastmute] places a one or zero on the lefthand side
of the multiplier and refreshes the value. When this value is zero the volume
is zero, when it is 1 the volume is restored to its last level set on the
right side of the multiply. For each fader a toggle on the main GUI
acts as an on/off or channel mute.
B1-mixer-master.pd
[catch~ left] and [catch~ right] pick up from
two globally visible main signals "left" and "right" which
are driven by [throw~] objects. Here both are
multiplied by a simple line with 20ms slew for a fast but slightly
less clicky fade action. Outputs for the [dac~] are specified
explicitly, but you don't have to do this unless working with multi channel audio.
B2-mixer-output.pd
[throw~]. It has it's own [line~]
unit which is controlled via [inlet volume] and [inlet pan] which
carries a value in degrees from -90 to +90. In this case we have made an unusual
compromise between mono and stereo sources by having a stereo signal panned midfield
at a width of 60 degrees, which leaves it 120 degrees of movement.
B3-mixer-channel.pd
[inlet pan]
is first rescaled from degrees to a normalised range.
A proper pan uses cosine fades for equal power panning, but this
panner is easier to understand and fine for most things. The left and
right volume control values are opposites of each other so when
the left pan signal is 1 the right is 0.
B4-pan.pd
Andy Farnell