Subsections

mixer-master

mixer master

Figure 3 summary

only one master

This is a simple part shown only for completeness. It is a wrapper for the mixer main output [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.
Figure 3: B1-mixer-master
\includegraphics[angle=0, scale=1]{/home/zero/PRODUCTION/TEACHING/PD/Composition-002/images/B1-mixer-master}
B1-mixer-master.pd

mixer output

Figure 4 summary

catch main bus

[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.
Figure 4: B2-mixer-output
\includegraphics[angle=0, scale=1]{/home/zero/PRODUCTION/TEACHING/PD/Composition-002/images/B2-mixer-output}
B2-mixer-output.pd

mixer channel

Figure 5 summary

many channels

This abstraction is repeated many times in the composition, it's a mixer channel that sends to the main bus using [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.
Figure 5: B3-mixer-channel
\includegraphics[angle=0, scale=1]{/home/zero/PRODUCTION/TEACHING/PD/Composition-002/images/B3-mixer-channel}
B3-mixer-channel.pd

simple panner

Figure 6 summary

opposite volume for left and right

The value on [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.
Figure 6: B4-pan
\includegraphics[angle=0, scale=1]{/home/zero/PRODUCTION/TEACHING/PD/Composition-002/images/B4-pan}
B4-pan.pd

Andy Farnell
http://obiwannabe.co.uk/