pan2 with a stereo master gain?

asiansteve's icon

When I have pan2's outputs going to the ezdac, my sample pans fine but then there is no master volume. Is there a less crude way of having two gain sliders for the left and right channels for a master volume? I either just one one master slider after the pan, or a way to control both the left and right gain slider at the same increments.

Thanks

Charles Matthews's icon
Max Patch
Copy patch and select New From Clipboard in Max.

There are a few ways you could go about this - you could use live.gain~ instead, which will take a stereo input/ouput (or up to 64 channels), link the two gain~ objects up with set messages or use a plain slider to control the gain objects or a pair of *~
Have pasted a couple of examples below, hope this helps if you hadn't figured it out already.