Forums > MaxMSP

Stereo Panning

August 21, 2008 | 1:23 pm

Hey, everyone.

I’m building a very silly patch that could use stereo panning controls for a few sounds. How should I go about building them? I’m guessing dB change is on a logarithmic curve, is that right? Anyway, thanks for listening.


August 21, 2008 | 1:33 pm

Have a look in max/examples/spatialization/panning for some ideas. I use this sine function equal power equation quite a lot. I hope it helps.

lh

– Pasted Max Patch, click to expand. –

August 21, 2008 | 9:02 pm

max/examples. That’s a good one to know. Oops. Thanks!


August 23, 2008 | 9:53 am

Max exemples are a great start .

There are a lot of different ways of making a pan obects ,

here is one simple way;

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden message 134 101 18 9109513 64;
#P hidden newex 110 65 45 9109513 loadbang;
#N vpatcher 15 55 615 455;
#P inlet 254 93 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 200 183 39 9109513 +~ 0.75;
#P outlet 147 337 15 0;
#P outlet 81 337 15 0;
#P window linecount 1;
#P newex 146 277 27 9109513 *~;
#P newex 82 277 27 9109513 *~;
#P window linecount 0;
#P newex 150 131 116 9109513 *~ 0;
#P newex 149 98 46 9109513 sig~ 0.25;
#P window linecount 1;
#P newex 175 214 36 9109513 cycle~;
#P window linecount 0;
#P newex 100 222 36 9109513 cycle~;
#P inlet 82 107 15 0;
#P comment 278 93 100 9109513 pan;
#P comment 29 105 100 9109513 audio input;
#P connect 7 0 9 0;
#P connect 2 0 7 0;
#P connect 3 0 7 1;
#P connect 6 0 3 1;
#P connect 2 0 8 0;
#P connect 8 0 10 0;
#P connect 5 0 6 0;
#P connect 4 0 8 1;
#P connect 6 0 11 0;
#P connect 11 0 4 1;
#P connect 12 0 6 1;
#P pop;
#P newobj 39 249 31 9109513 p pan;
#P user dial 128 132 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P toggle 57 84 15 0;
#P number 21 35 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 21 58 36 9109513 sig~ 1.;
#P message 46 109 38 9109513 loop $1;
#P message 216 254 38 9109513 replace;
#P newex 216 292 69 9109513 buffer~ wave1;
#P newex 34 221 33 9109513 *~ 0.2;
#P user ezdac~ 34 283 78 316 0;
#P flonum 128 219 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 128 192 39 9109513 / 127.;
#P newex 21 137 72 9109513 groove~ wave1;
#P window linecount 2;
#P comment 109 284 100 9109513 based on chris Dobrian cp-pan;
#P window linecount 1;
#P comment 178 143 100 9109513 pan me !;
#P connect 11 0 10 0;
#P connect 10 0 2 0;
#P connect 9 0 2 0;
#P connect 2 0 6 0;
#P connect 2 1 6 0;
#P connect 14 0 5 0;
#P connect 6 0 14 0;
#P hidden connect 15 0 9 0;
#P connect 12 0 9 0;
#P connect 4 0 14 1;
#P connect 14 1 5 1;
#P hidden connect 16 0 13 0;
#P connect 13 0 3 0;
#P connect 3 0 4 0;
#P hidden connect 15 0 16 0;
#P connect 8 0 7 0;
#P window clipboard copycount 17;


August 23, 2008 | 4:37 pm

Yep – it’s *always* a good idea to look
around at all those free materials (try
searching in the file browser, as well as
the integrated docs).

But there are always different ways to do
things, in part because you may have
different goals. Since I use Tim Place’s
Tap Tools, the first example may not work
for you. The second stupid hack should be
similar [although this could be the jet
lag talking]….

– Pasted Max Patch, click to expand. –

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