Wednesday, August 30, 2006

HELP!

I needed some help with something, so I thought I'd post (it'll give you a chance to learn how to open max text files).

1. Open a new patcher in Max.

2. Copy the text that I put on the comments page (sorry, couldn't figure out how to make a cut-away in blogger).

3. Paste in the patcher.

4. Resize patcher to fit.

I was playing around with panning formulas, and all I have are these crappy laptop speakers. I'm trying to decide which sounds better. The first is constant-power panning, and the second is linear panning. You can see the difference in the multislider visualization. Any help would be great!

Thanks,
Keith

P.S. I got these formulas from this book.

5 Comments:

Blogger Keith Manlove said...

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 563 95 62 196617 64 \, 0 3000;
#P message 501 96 62 196617 0 \, 64 3000;
#P window setfont "Sans Serif" 18.;
#P comment 750 205 147 196626 Linear Panning;
#P window setfont "Sans Serif" 9.;
#P hidden newex 60 60 106 196617 bgcolor 200 210 195;
#P message 137 395 14 196617 1;
#P message 97 395 30 196617 open;
#P user umenu 45 507 100 196647 1 64 523 1;
#X add off;
#X add constant-power;
#X add linear;
#P newex 226 543 62 196617 selector~ 2;
#P newex 797 345 87 196617 zmap 0. 1. 0 127;
#P newex 796 547 27 196617 *~;
#P newex 619 504 27 196617 *~;
#P user multiSlider 818 388 163 47 0. 127. 1 3449 15 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 200 210 195;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 650 355 87 196617 zmap 0. 1. 0 127;
#P user multiSlider 631 386 187 48 0. 127. 1 3449 15 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 200 210 195;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 817 310 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 698 312 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vtable 128 20 74 230 241 16 128;
#T set 0 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0;
#P newobj 812 244 32 196617 table;
#P newex 816 268 87 196617 zmap 0 127 0. 1.;
#P newex 708 267 87 196617 zmap 0 127 0. 1.;
#P newex 127 539 62 196617 selector~ 2;
#P message 433 96 68 196617 127 \, 0 5000;
#P message 363 96 68 196617 0 \, 127 5000;
#P newex 374 115 40 196617 line 0.;
#P user ezdac~ 168 587 212 620 0;
#N sfplay~ 1 120960 0 ;
#P newobj 107 423 44 196617 sfplay~;
#P newex 360 501 27 196617 *~;
#P newex 155 487 27 196617 *~;
#P number 374 138 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 216 231 47 196617 - 0.79;
#P flonum 223 254 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 232 196 99 196617 zmap 0 127 0. 1.58;
#P user hslider 374 160 18 128 128 1 0 0;
#P user multiSlider 377 386 163 47 0. 127. 1 3449 15 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 200 210 195;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 403 340 87 196617 zmap 0. 1. 0 127;
#P flonum 407 315 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 401 288 210 196617 expr (sqrt(2) / 2) * (cos($f1) + (sin($f1)));
#P newex 171 350 87 196617 zmap 0. 1. 0 127;
#P user multiSlider 209 387 163 47 0. 127. 1 3449 15 0 0 2 0 0 1;
#M frgb 0 0 0;
#M brgb 200 210 195;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 189 319 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 189 288 209 196617 expr (sqrt(2) / 2) * (cos($f1) - (sin($f1)));
#P comment 414 142 43 196617 mid |;
#P window linecount 3;
#P comment 58 358 100 196617 1. Push open to load a soundfile and the 1 to start;
#P window linecount 2;
#P comment 26 477 100 196617 2. push to select panning type;
#P window linecount 4;
#P comment 360 30 100 196617 3. push these message boxes or use slider to pan back and forth;
#P window setfont "American Typewriter" 24.;
#P window linecount 2;
#P comment 131 101 129 199491608 Which is better?!?!;
#P user panel 323 23 319 170;
#X brgb 233 255 141;
#X frgb 212 144 2;
#X border 1;
#X rounded 25;
#X shadow 0;
#X done;
#P user panel 52 354 117 107;
#X brgb 233 255 141;
#X frgb 212 144 2;
#X border 1;
#X rounded 25;
#X shadow 0;
#X done;
#P window setfont "Sans Serif" 18.;
#P comment 364 230 147 196626 Constant-Power Panning;
#P user panel 16 473 134 58;
#X brgb 233 255 141;
#X frgb 212 144 2;
#X border 1;
#X rounded 25;
#X shadow 0;
#X done;
#P window linecount 3;
#P comment 337 570 375 196626 !!!!!! If you don't have soundfiles \, replace sfplay~ with cycle~ and connect to the 4 *~. Should work.;
#P connect 45 0 25 0;
#P connect 44 0 25 0;
#P connect 43 0 30 0;
#P connect 25 1 45 0;
#P connect 23 0 30 1;
#P connect 25 0 23 0;
#P connect 30 0 26 0;
#P connect 11 0 13 0;
#P connect 11 0 23 1;
#P fasten 39 0 30 2 624 529 184 529;
#P connect 20 0 10 0;
#P connect 10 0 11 0;
#P connect 42 0 26 1;
#P connect 13 0 12 0;
#P connect 19 0 21 0;
#P connect 21 0 20 0;
#P connect 43 0 42 0;
#P connect 18 0 19 0;
#P connect 24 0 42 1;
#P fasten 40 0 42 2 801 571 768 571 768 529 283 529;
#P fasten 25 0 24 0 112 455 365 455;
#P connect 49 0 27 0;
#P connect 48 0 27 0;
#P connect 29 0 27 0;
#P connect 28 0 27 0;
#P connect 27 0 22 0;
#P connect 22 0 18 0;
#P connect 16 0 17 0;
#P connect 15 0 24 1;
#P connect 20 0 14 0;
#P connect 15 0 16 0;
#P connect 14 0 15 0;
#P fasten 25 0 39 0 112 455 624 455;
#P connect 37 0 36 0;
#P connect 34 0 39 1;
#P connect 34 0 37 0;
#P connect 31 0 34 0;
#P connect 18 0 31 0;
#P fasten 25 0 40 0 112 455 801 455;
#P connect 35 0 41 0;
#P connect 18 0 33 0;
#P connect 35 0 40 1;
#P connect 33 0 32 0;
#P connect 32 0 35 0;
#P connect 41 0 38 0;

7:53 PM, August 30, 2006  
Blogger Steve Taylor said...

Nice patch Keith! Especially your use of zmap and the multislider object. MSP Tutorial 22 discusses different types of panning, including a formula similar to the one you're using. Personally I vote for constant-power panning, it sounds way better.

Two quick comments on your patch: first, you can open a text file as a Max patch by copying the file (command-c) then going into Max and selecting "New from Clipboard" from the File menu.

Also, the way you hooked the number 1 message box to sfplay~ looks like it will make the soundfile play in an infinite loop; instead, use the toggle box to send sfplay~ 1 or 0. If you want looping, try hooking a toggle to a "loop $1" message box (see the sfplay~ help file).

9:30 PM, August 30, 2006  
Blogger Steve Taylor said...

Also - if you don't like your crappy laptop speakers, plug in some headphones! :)

9:31 PM, August 30, 2006  
Blogger Keith Manlove said...

MSP 22?! I'm so embarrassed! Thanks for pointing that out. Time to get reading! I knew about the sfplay~. I've seen it done both ways. Things like that make me wonder which is more efficient. I would imagine your way since mine is sending control data every time it loops. Speaking of that... have you seen that monster post about send/receive vs. send~/receive~ cpu usage? What are your thoughts on that?

Oh btw, if you want to open the text file steve's way I think you need to add

max v2;
#N vpatcher 10 59 1023 731;

to the top of the other post and

#P pop;

on the bottom. Is that right, Steve?

Scott says that Laptops + headphones + mixing = hacks. Maybe I shouldn't have put that on the internet. He'll hunt me down in something ala "The Most Dangerous Game."

9:47 PM, August 30, 2006  
Blogger Keith Manlove said...

Oh! It said midi panning... that's why I didn't read it. Nobody wants to pan midi!

10:31 PM, August 30, 2006  

Post a Comment

Links to this post:

Create a Link

<< Home