Forums > MaxMSP

panning

September 28, 2006 | 7:22 pm

hello,

how do you create a stereo panner that takes a stereo input?
examples with max only take mono input. (pan2, pan2S etc.)
also, nathan wolek’s cppan and tap.pan are only mono also.
i don’t want to lose stereo image of file,
but i want to be able to pan it from left to right.
like in most sequencers (logic, DP) it is still possible to pan stereo files.
how do you do this in max?
i want to use a hslider to control left or right placement.

i know this has been discuss before, and i’ve looked at other postings, but no examples seem to work correctly, the stereo images seems to always be stronger on one side.

Thank you for your help!

Kenichi


September 28, 2006 | 7:41 pm

On Sep 28, 2006, at 3:22 PM, takami kenichi wrote:

> hello,
>
> how do you create a stereo panner that takes a stereo input?
> examples with max only take mono input. (pan2, pan2S etc.)
> also, nathan wolek’s cppan and tap.pan are only mono also.
> i don’t want to lose stereo image of file,
> but i want to be able to pan it from left to right.
> like in most sequencers (logic, DP) it is still possible to pan
> stereo files.
> how do you do this in max?
> i want to use a hslider to control left or right placement.
>
> i know this has been discuss before, and i’ve looked at other
> postings, but no examples seem to work correctly, the stereo images
> seems to always be stronger on one side.
>
> Thank you for your help!
>
> Kenichi

stereo is just two mono signals. take it from there.
best
bruce

bruce tovsky
http://www.skeletonhome.com

"The secret to creativity is knowing how to hide your sources."
Albert Einstein


September 28, 2006 | 11:13 pm

thanks. i’ll give it a try.
so basically what you are suggesting is using two pan modules…one for each channel?

kenichi


September 29, 2006 | 1:35 am

simplest way is instead of one mono signal going to both left and right, take the right to the right channel, the left to the left. adjust relative gain levels for panning effect
or you could experiment with using two panning modules, might sound interesting


September 29, 2006 | 3:57 am

On Sep 28, 2006, at 7:13 PM, takami kenichi wrote:

> thanks. i’ll give it a try.
> so basically what you are suggesting is using two pan modules…one
> for each channel?

that’s one way. don’t get too hung up on the idea of "panning" – it’s
just a name.
you could solve this problem a lot of ways without a "pan knob" in
there. i’ve
done it using two sliders… or four…. or some other kind of
graphic interface.
i’m confused about one thing you said – you wanted to "pan without
losing the
stereo image" – i’d be interested to see how you work that out…
maybe in quad?

cheers
bruce

bruce tovsky
http://www.skeletonhome.com

"Flying is learning how to throw yourself at the ground and miss."
Douglas Adams


September 29, 2006 | 4:55 am

> i’m confused about one thing you said – you wanted to "pan without
> losing the
> stereo image"

what i meant by this, bruce, is that at center position, i want my stereo file to have it’s full stereo image. of course at hard left or right, it would be only coming through one side.

so, does this look right. aurally, it sounds right, but it doesn’t really make logical sense to me. any successful examples would be very appreciated. i’ve been confused by this conceptually for sometime.

thanks,

kenichi


September 29, 2006 | 6:33 am

I believe this is the standard way in stereo equipment. You could test
on a mixer with a stereo input channel, or even playing a CD where some
instruments seems to be panned hard right or left. I’m pretty sure that
panning hard right or left is the same as muting one of the stereo
channels. If you pan hard left, the right input channel doesn’t get
mixed to the left speaker, you only hear the left input channel.

Best,
Trond

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 57 59 43 196617 open , 1;
#P window linecount 2;
#P comment 53 177 59 196617 only use left outlet;
#P user ezdac~ 208 253 252 286 0;
#P window linecount 1;
#N sfplay~ 2 120960 0 ;
#P newobj 57 85 53 196617 sfplay~ 2;
#P window setfont "Fixedwidth Serif" 10.;
#N vpatcher 152 77 450 348;
#P window setfont Times 10.;
#P comment 177 140 103 1310730 Crossfade in which the intensity of the
combined channels (and thus the impression of distance from the sound
source) is kept constant , as if the sound were travelling on an arc
with the listener at the center.;
#P comment 82 230 37 1310730 R Gain;
#P comment 13 230 37 1310730 L Gain;
#N comlet (signal) right channel gain;
#P outlet 91 215 15 0;
#N comlet (signal) left channel gain;
#P outlet 21 215 15 0;
#N comlet (int) MIDI panning;
#P inlet 54 38 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 21 190 43 1441802 cycle~;
#P flonum 54 102 67 10 0 0 128 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 54 56 68 1441802 split 0 64;
#P newex 54 139 74 1441802 line~ 0.125;
#P message 54 120 38 1441802 $1 20;
#P newex 54 77 43 1441802 / 512.;
#P newex 124 165 50 1441802 +~ 0.75;
#P newex 91 190 43 1441802 cycle~;
#P newex 112 77 152 1441802 expr ($i1-64)/504.+0.125;
#P window setfont Times 10.;
#P comment 69 38 67 1310730 MIDI Panning;
#P connect 9 0 11 0;
#P connect 10 0 7 0;
#P connect 7 0 4 0;
#P fasten 1 0 8 0 117 98 59 98;
#P connect 4 0 8 0;
#P connect 8 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 9 1;
#P connect 2 0 12 0;
#P connect 7 1 1 0;
#P fasten 6 0 3 0 59 160 129 160;
#P connect 3 0 2 1;
#P pop;
#P newobj 233 126 170 1441802 p "constant distance xfade";
#N vpatcher 152 77 450 348;
#P window setfont Times 10.;
#P comment 177 140 103 1310730 Crossfade in which the intensity of the
combined channels (and thus the impression of distance from the sound
source) is kept constant , as if the sound were travelling on an arc
with the listener at the center.;
#P comment 82 230 37 1310730 R Gain;
#P comment 13 230 37 1310730 L Gain;
#N comlet (signal) right channel gain;
#P outlet 91 215 15 0;
#N comlet (signal) left channel gain;
#P outlet 21 215 15 0;
#N comlet (int) MIDI panning;
#P inlet 54 38 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 21 190 43 1441802 cycle~;
#P flonum 54 102 67 10 0 0 128 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 54 56 68 1441802 split 0 64;
#P newex 54 139 74 1441802 line~ 0.125;
#P message 54 120 38 1441802 $1 20;
#P newex 54 77 43 1441802 / 512.;
#P newex 124 165 50 1441802 +~ 0.75;
#P newex 91 190 43 1441802 cycle~;
#P newex 112 77 152 1441802 expr ($i1-64)/504.+0.125;
#P window setfont Times 10.;
#P comment 69 38 67 1310730 MIDI Panning;
#P connect 9 0 11 0;
#P connect 10 0 7 0;
#P connect 7 0 4 0;
#P connect 4 0 8 0;
#P fasten 1 0 8 0 117 98 59 98;
#P connect 8 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 9 1;
#P connect 2 0 12 0;
#P connect 7 1 1 0;
#P fasten 6 0 3 0 59 160 129 160;
#P connect 3 0 2 1;
#P pop;
#P newobj 57 125 170 1441802 p "constant distance xfade";
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 363 177 59 196617 only use right outlet;
#P connect 6 0 3 0;
#P connect 2 1 4 1;
#P connect 1 0 4 0;
#P fasten 3 1 2 0 83 114 238 114;
#P connect 3 0 1 0;
#P window clipboard copycount 7;

takami kenichi wrote:
>> i’m confused about one thing you said – you wanted to "pan without
>> losing the
>> stereo image"
>>
>
> what i meant by this, bruce, is that at center position, i want my stereo file to have it’s full stereo image. of course at hard left or right, it would be only coming through one side.
>
> so, does this look right. aurally, it sounds right, but it doesn’t really make logical sense to me. any successful examples would be very appreciated. i’ve been confused by this conceptually for sometime.
>
> thanks,
>
> kenichi
>


September 29, 2006 | 11:52 am

At 1:22 PM -0600 9/28/06, takami kenichi wrote:
>hello,
>
>how do you create a stereo panner that takes a stereo input?
>examples with max only take mono input. (pan2, pan2S etc.)
>also, nathan wolek’s cppan and tap.pan are only mono also.
>i don’t want to lose stereo image of file,
>but i want to be able to pan it from left to right.
>like in most sequencers (logic, DP) it is still possible to pan stereo files.
>how do you do this in max?
>i want to use a hslider to control left or right placement.

This is an abstraction of how I do it – it uses Nathan Wolek’s cppan.
Be sure to look at the Get Info for each of the inlets and outlets to
see how to use it:

max v2;
#N vpatcher 512 278 752 599;
#P origin 0 32;
#N comlet R audio out;
#P outlet 119 238 15 0;
#N comlet L audio out;
#P outlet 46 238 15 0;
#N comlet Pan amount , float , 0. to 2. , 0=left , 2=right;
#P inlet 94 59 15 0;
#N comlet R audio in;
#P inlet 63 59 15 0;
#N comlet L audio in;
#P inlet 46 59 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 119 206 59 196617 cppan~ 1.;
#P newex 46 206 53 196617 cppan~ 0.;
#P newex 94 110 33 196617 t 1. f;
#P newex 150 110 33 196617 t 1. f;
#P newex 77 181 27 196617 – 1.;
#P newex 94 83 66 196617 split 0. 0.99;
#P connect 6 0 4 0;
#P connect 5 0 9 0;
#P connect 4 0 9 0;
#P connect 2 1 1 0;
#P connect 1 0 4 1;
#P connect 8 0 0 0;
#P connect 0 0 3 0;
#P connect 3 0 1 1;
#P connect 7 0 5 0;
#P connect 5 1 10 0;
#P connect 4 1 10 0;
#P connect 0 1 2 0;
#P connect 3 1 5 1;
#P connect 2 0 5 1;
#P pop;


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X
http://www.defectiverecords.com

http://www.jackosx.com


September 29, 2006 | 2:30 pm

Quote: kenichi wrote on Thu, 28 September 2006 22:55
—————————————————-
> > i’m confused about one thing you said – you wanted to "pan without
> > losing the
> > stereo image"
>
> what i meant by this, bruce, is that at center position, i want my stereo file to have it’s full stereo image. of course at hard left or right, it would be only coming through one side.
>
> so, does this look right. aurally, it sounds right, but it doesn’t really make logical sense to me. any successful examples would be very appreciated. i’ve been confused by this conceptually for sometime.

i was sure you meant it like that. :)

that can be done easily using 2 copies of 2pan – just
pan the right channel from the middle to the right only
and the left channel only from the left position to the
center.


October 1, 2006 | 9:18 am

thank you everyone for your responses!
i understand much better now.

thanks,

kenichi


October 1, 2006 | 1:19 pm

Trond Lossius wrote:
> I believe this is the standard way in stereo equipment. You could test
> on a mixer with a stereo input channel, or even playing a CD where some
> instruments seems to be panned hard right or left.

As the actual gain part was missing, a modified version:

#P user dial 123 58 40 40 128 1 0 0 223 270 1 1. 170 170 170 221 221 221
120 120 120 225 225 225 0 0 0 0 0 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 57 59 43 196617 open , 1;
#P user ezdac~ 57 163 101 196 0;
#N sfplay~ 2 120960 0 ;
#P newobj 57 85 53 196617 sfplay~ 2;
#P window setfont "Fixedwidth Serif" 10.;
#N vpatcher 94 299 460 630;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 113 218 32 196617 *~;
#P window linecount 0;
#P newex 39 218 36 196617 *~;
#P inlet 56 43 15 0;
#P inlet 39 43 15 0;
#P window setfont Times 10.;
#P comment 104 261 37 1310730 R Gain;
#P comment 31 260 37 1310730 L Gain;
#N comlet (signal) right channel gain;
#P outlet 113 246 15 0;
#N comlet (signal) left channel gain;
#P outlet 39 245 15 0;
#N comlet (int) MIDI panning;
#P inlet 98 43 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 65 173 43 1441802 cycle~;
#P flonum 98 107 67 10 0 0 128 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 98 61 68 1441802 split 0 64;
#P newex 98 144 74 1441802 line~ 0.125;
#P message 98 125 38 1441802 $1 20;
#P newex 98 82 43 1441802 / 512.;
#P newex 168 170 50 1441802 +~ 0.75;
#P newex 135 195 43 1441802 cycle~;
#P newex 156 82 152 1441802 expr ($i1-64)/504.+0.125;
#P window setfont Times 10.;
#P comment 113 43 67 1310730 MIDI Panning;
#P connect 15 0 17 0;
#P connect 17 0 11 0;
#P connect 9 0 17 1;
#P connect 10 0 7 0;
#P connect 7 0 4 0;
#P fasten 1 0 8 0 161 103 103 103;
#P connect 4 0 8 0;
#P connect 8 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 9 1;
#P fasten 16 0 18 0 61 204 118 204;
#P connect 18 0 12 0;
#P connect 2 0 18 1;
#P connect 7 1 1 0;
#P fasten 6 0 3 0 103 165 173 165;
#P connect 3 0 2 1;
#P pop;
#P newobj 57 125 77 1441802 p Balance~;
#P connect 4 0 0 2;
#P connect 0 1 2 1;
#P connect 1 1 0 1;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 3 0 1 0;
#P window clipboard copycount 5;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


Viewing 11 posts - 1 through 11 (of 11 total)