Panning a stereo input to stereo output

cudnylon's icon

I'm making a bank of stereo sfplay~ objects. I want to be able to pan each sound across the L and R outputs. I checked the examples and they are all for mono input, and the solutions I found on the forum had bleedthrough (could hear left input in right ear while panner was centered, etc). I worked up this quick attempt that works correctly, only there is some clipping when hard panned. Is this the best way to go about a stereo panner? I don't need any fancy gimmicks, just a slider to go from left to right and a button to center the slider with accurate stereo separation.

Max Patch
Copy patch and select New From Clipboard in Max.


Tim Lloyd's icon

Does this one have bleedthrough for you?

save as stereo_pan

Max Patch
Copy patch and select New From Clipboard in Max.

example :

Max Patch
Copy patch and select New From Clipboard in Max.

cudnylon's icon

there is no bleedthrough but it isn't really a stereo panner. when i put it to the left I only hear the left input and when i put it to the right i only hear the right input, no mix of signals.

i'm testing it with an audio file i made that has a cymbal hard panned to the left and a snare hard panned to the right. in concept when i move the slider to the i should hear both sounds in the left speaker, to the right in the right speaker, and in the center separated between speakers. am i just crazy that panning doesn't work this way?

Roman Thilenius's icon

well lets stay in the terminology that we know from midi
controllers: there is "panning" and "balance".

"panning" is mono to stereo, and "balance" is stereo to stereo.

panning means distributing the power to the two output channels,
if it is at 50%, both sides get the same amount of power.

balance means simply individual gain control for right and left.
when balance is at 50% both input channels are unchanged, and if
you go to the side, the other channel is lowered in volume.

i would suggest you to invent you own "stereo panning" if you
need one. thats why you use maxmsp and not protools, right?

-110

cudnylon's icon

I'm really embarrassing myself here. All these years I thought panning referred to mono and stereo signals. I should just start tagging all my threads with "novice". Thanks for clearing things up, Roman. Sorry for the trouble.

Roman Thilenius's icon

you can make it so that the left channel is moved to
the right when your control exceeds +100%, just do it,
maybe it is much cooler than following the old rules.

Yot Magnet's icon

For balancing a stereo signal (not panning), it's here:

Max Patch
Copy patch and select New From Clipboard in Max.