Forums > MaxMSP

sfinfo~ and bpatcher help


n z
March 24, 2006 | 11:36 pm

Hey everyone, Ive made a little audofile player supatch using the bpatch.
To get sfinfo~ to work within the audiofile player subpatch, I’ve had to
name the sfplay~ object using loadbang and a message box. However, If I
have multiple instances of this bpatch in the same max patch, the sfinfo~
stops working because of the whole naming thing. Is there some way that I
can isolate every bpatch?
I’ve included an example of my problem below. Just load an audiofile into
the first audiofile player on the left, and then hit the checkbox to make it
start and also trigger sfinfo~. Then, when you do the same to the second
audiofile player, it will play the audio that you chose, but show all the
info of the first audiofile..

max v2;
#N vpatcher 295 110 895 510;
#P bpatcher 384 50 143 122 0 0 Soundfile 2;
#N vpatcher 60 92 890 562;
#P origin 2 -67;
#P hidden user swatch 673 208 32 24;
#P window setfont "Sans Serif" 9.;
#P hidden newex 748 186 62 196617 random 256;
#P hidden newex 684 186 62 196617 random 256;
#P hidden newex 620 186 62 196617 random 256;
#P hidden message 675 235 73 196617 brgb $1 $2 $3;
#P hidden user swatch 686 135 32 24;
#P hidden newex 761 113 62 196617 random 256;
#P hidden newex 697 113 62 196617 random 256;
#P hidden newex 633 113 62 196617 random 256;
#P hidden message 688 162 73 196617 brgb $1 $2 $3;
#P window setfont Arial 9.;
#P hidden newex 365 368 33 131137545 gate~;
#P hidden toggle 352 337 15 0;
#P hidden message 221 375 14 131137545 0;
#P hidden message 191 375 14 131137545 1;
#P hidden newex 191 349 39 131137545 route 1;
#P hidden number 191 330 49 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0
0;
#P user meter~ 1 75 139 87 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P user meter~ 1 64 139 76 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P flonum 120 86 19 9 0 0 32 2001 255 255 255 0 0 0 222 222 222 0 0 0;
#P hidden message 583 117 14 131137545 1;
#P window setfont Arial 18.;
#P message 103 86 18 131137554 4;
#P message 1 86 35 131137554 0.2;
#P message 35 86 35 131137554 0.5;
#P message 86 86 18 131137554 2;
#P message 69 86 18 131137554 1;
#B color 12;
#P window setfont Arial 9.;
#P hidden message 472 177 48 131137545 speed $1;
#P hidden message 425 118 23 131137545 255;
#P user multiSlider 29 52 110 13 0. 255. 1 2664 47 0 0 2 0 50 0;
#M frgb 86 255 75;
#M brgb 255 255 255;
#M rgb2 99 99 99;
#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;
#N comlet Audio Out Right;
#P hidden outlet 285 449 15 0;
#N comlet Audio Out Left;
#P hidden outlet 157 450 15 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 424 310 135 196617 onepole~ 10633.138672 Hz;
#P hidden comment 361 221 100 196617 Hz.;
#P hidden newex 260 157 63 196617 * 0.052456;
#P hidden newex 260 178 63 196617 t 2. f;
#P hidden flonum 260 138 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 260 199 63 196617 pow 2.;
#P hidden flonum 260 220 101 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 452 330 135 196617 onepole~ 10633.138672 Hz;
#P window setfont Arial 9.;
#P hidden newex 261 162 47 131137545 onepole~;
#P user panel 73 21 66 15;
#X brgb 225 14 244;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 596 72 47 131137545 loadbang;
#P hidden message 540 118 40 131137545 loop $1;
#P window setfont "Sans Serif" 9.;
#P hidden message 452 116 77 196617 name Soundfile;
#P hidden message 191 285 96 196617 getnamed Soundfile;
#P window setfont "Sans Serif" 10.;
#P message 29 36 110 196618 soundfile!!!!!!!!!!!!!!;
#B color 12;
#P window setfont "Sans Serif" 9.;
#P flonum 29 22 45 9 0 0 8256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 1 36 29 0;
#P message 1 22 29 196617 open;
#N sfplay~ 2 120960 0 Soundfile;
#P hidden newobj 463 234 53 196617 sfplay~ 2;
#P user panel 1 22 138 89;
#X brgb 231 142 153;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 191 304 86 196617 sfinfo~;
#B color 5;
#P hidden newex 270 334 62 196617 prepend set;
#P hidden connect 42 0 2 0;
#P hidden connect 21 0 34 0;
#P hidden connect 14 0 35 0;
#P hidden connect 41 0 35 0;
#P hidden connect 1 3 6 0;
#P hidden connect 0 0 7 0;
#P hidden connect 25 0 24 0;
#P hidden connect 11 0 27 0;
#P hidden connect 47 0 12 0;
#P hidden connect 31 0 33 0;
#P hidden connect 29 0 33 0;
#P hidden connect 27 0 33 0;
#P hidden connect 30 0 33 0;
#P hidden connect 28 0 33 0;
#P hidden connect 21 0 22 0;
#P hidden connect 5 0 8 0;
#P hidden connect 3 2 8 0;
#P hidden connect 8 0 1 0;
#P hidden connect 1 0 36 0;
#P hidden connect 36 0 37 0;
#P hidden connect 37 0 38 0;
#P hidden connect 37 1 39 0;
#P hidden connect 24 0 17 0;
#P hidden connect 17 0 19 0;
#P hidden connect 19 0 18 0;
#P hidden connect 18 0 16 0;
#P hidden connect 16 0 15 0;
#P hidden connect 1 5 0 0;
#P hidden connect 41 0 23 0;
#P hidden connect 14 0 23 0;
#P hidden connect 18 1 16 1;
#P hidden connect 38 0 40 0;
#P hidden connect 39 0 40 0;
#P hidden connect 40 0 41 0;
#P hidden connect 21 0 41 1;
#P hidden connect 3 0 21 0;
#P hidden connect 11 0 25 0;
#P hidden connect 11 0 9 0;
#P hidden connect 3 1 14 0;
#P hidden connect 5 0 3 0;
#P hidden connect 26 0 3 0;
#P hidden connect 10 0 3 0;
#P hidden connect 9 0 3 0;
#P hidden connect 4 0 3 0;
#P hidden connect 32 0 26 0;
#P hidden connect 31 0 26 0;
#P hidden connect 30 0 26 0;
#P hidden connect 29 0 26 0;
#P hidden connect 28 0 26 0;
#P hidden connect 27 0 26 0;
#P hidden connect 32 0 10 0;
#P hidden connect 15 0 21 1;
#P hidden connect 15 0 14 1;
#P hidden connect 11 0 32 0;
#P hidden connect 11 0 48 0;
#P hidden connect 11 0 43 0;
#P hidden connect 48 0 51 0;
#P hidden connect 51 0 47 0;
#P hidden connect 11 0 49 0;
#P hidden connect 49 0 51 1;
#P hidden connect 43 0 46 0;
#P hidden connect 46 0 42 0;
#P hidden connect 50 0 51 2;
#P hidden connect 11 0 44 0;
#P hidden connect 44 0 46 1;
#P hidden connect 45 0 46 2;
#P hidden connect 11 0 50 0;
#P hidden connect 11 0 45 0;
#P pop;
#BP pop 0;
#P bpatcher 224 45 143 122 0 0 Soundfile 2;
#N vpatcher 60 92 890 562;
#P origin 2 -67;
#P hidden user swatch 673 208 32 24;
#P window setfont "Sans Serif" 9.;
#P hidden newex 748 186 62 196617 random 256;
#P hidden newex 684 186 62 196617 random 256;
#P hidden newex 620 186 62 196617 random 256;
#P hidden message 675 235 73 196617 brgb $1 $2 $3;
#P hidden user swatch 686 135 32 24;
#P hidden newex 761 113 62 196617 random 256;
#P hidden newex 697 113 62 196617 random 256;
#P hidden newex 633 113 62 196617 random 256;
#P hidden message 688 162 73 196617 brgb $1 $2 $3;
#P window setfont Arial 9.;
#P hidden newex 365 368 33 131137545 gate~;
#P hidden toggle 352 337 15 0;
#P hidden message 221 375 14 131137545 0;
#P hidden message 191 375 14 131137545 1;
#P hidden newex 191 349 39 131137545 route 1;
#P hidden number 191 330 49 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0
0;
#P user meter~ 1 75 139 87 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P user meter~ 1 64 139 76 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P flonum 120 86 19 9 0 0 32 2001 255 255 255 0 0 0 222 222 222 0 0 0;
#P hidden message 583 117 14 131137545 1;
#P window setfont Arial 18.;
#P message 103 86 18 131137554 4;
#P message 1 86 35 131137554 0.2;
#P message 35 86 35 131137554 0.5;
#P message 86 86 18 131137554 2;
#P message 69 86 18 131137554 1;
#B color 12;
#P window setfont Arial 9.;
#P hidden message 472 177 48 131137545 speed $1;
#P hidden message 425 118 23 131137545 255;
#P user multiSlider 29 52 110 13 0. 255. 1 2664 47 0 0 2 0 50 0;
#M frgb 86 255 75;
#M brgb 255 255 255;
#M rgb2 99 99 99;
#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;
#N comlet Audio Out Right;
#P hidden outlet 285 449 15 0;
#N comlet Audio Out Left;
#P hidden outlet 157 450 15 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 424 310 135 196617 onepole~ 10633.138672 Hz;
#P hidden comment 361 221 100 196617 Hz.;
#P hidden newex 260 157 63 196617 * 0.052456;
#P hidden newex 260 178 63 196617 t 2. f;
#P hidden flonum 260 138 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 260 199 63 196617 pow 2.;
#P hidden flonum 260 220 101 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 452 330 135 196617 onepole~ 10633.138672 Hz;
#P window setfont Arial 9.;
#P hidden newex 261 162 47 131137545 onepole~;
#P user panel 73 21 66 15;
#X brgb 225 14 244;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 596 72 47 131137545 loadbang;
#P hidden message 540 118 40 131137545 loop $1;
#P window setfont "Sans Serif" 9.;
#P hidden message 452 116 77 196617 name Soundfile;
#P hidden message 191 285 96 196617 getnamed Soundfile;
#P window setfont "Sans Serif" 10.;
#P message 29 36 110 196618 soundfile!!!!!!!!!!!!!!;
#B color 12;
#P window setfont "Sans Serif" 9.;
#P flonum 29 22 45 9 0 0 8256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 1 36 29 0;
#P message 1 22 29 196617 open;
#N sfplay~ 2 120960 0 Soundfile;
#P hidden newobj 463 234 53 196617 sfplay~ 2;
#P user panel 1 22 138 89;
#X brgb 231 142 153;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 191 304 86 196617 sfinfo~;
#B color 5;
#P hidden newex 270 334 62 196617 prepend set;
#P hidden connect 42 0 2 0;
#P hidden connect 21 0 34 0;
#P hidden connect 41 0 35 0;
#P hidden connect 14 0 35 0;
#P hidden connect 1 3 6 0;
#P hidden connect 0 0 7 0;
#P hidden connect 25 0 24 0;
#P hidden connect 11 0 27 0;
#P hidden connect 47 0 12 0;
#P hidden connect 27 0 33 0;
#P hidden connect 29 0 33 0;
#P hidden connect 31 0 33 0;
#P hidden connect 28 0 33 0;
#P hidden connect 30 0 33 0;
#P hidden connect 21 0 22 0;
#P hidden connect 5 0 8 0;
#P hidden connect 3 2 8 0;
#P hidden connect 8 0 1 0;
#P hidden connect 1 0 36 0;
#P hidden connect 36 0 37 0;
#P hidden connect 37 0 38 0;
#P hidden connect 37 1 39 0;
#P hidden connect 24 0 17 0;
#P hidden connect 17 0 19 0;
#P hidden connect 19 0 18 0;
#P hidden connect 18 0 16 0;
#P hidden connect 16 0 15 0;
#P hidden connect 1 5 0 0;
#P hidden connect 14 0 23 0;
#P hidden connect 41 0 23 0;
#P hidden connect 18 1 16 1;
#P hidden connect 39 0 40 0;
#P hidden connect 38 0 40 0;
#P hidden connect 40 0 41 0;
#P hidden connect 21 0 41 1;
#P hidden connect 3 0 21 0;
#P hidden connect 11 0 25 0;
#P hidden connect 11 0 9 0;
#P hidden connect 3 1 14 0;
#P hidden connect 4 0 3 0;
#P hidden connect 9 0 3 0;
#P hidden connect 10 0 3 0;
#P hidden connect 26 0 3 0;
#P hidden connect 5 0 3 0;
#P hidden connect 32 0 26 0;
#P hidden connect 27 0 26 0;
#P hidden connect 28 0 26 0;
#P hidden connect 29 0 26 0;
#P hidden connect 30 0 26 0;
#P hidden connect 31 0 26 0;
#P hidden connect 32 0 10 0;
#P hidden connect 15 0 21 1;
#P hidden connect 15 0 14 1;
#P hidden connect 11 0 32 0;
#P hidden connect 11 0 48 0;
#P hidden connect 11 0 43 0;
#P hidden connect 48 0 51 0;
#P hidden connect 51 0 47 0;
#P hidden connect 11 0 49 0;
#P hidden connect 49 0 51 1;
#P hidden connect 43 0 46 0;
#P hidden connect 46 0 42 0;
#P hidden connect 50 0 51 2;
#P hidden connect 11 0 44 0;
#P hidden connect 44 0 46 1;
#P hidden connect 45 0 46 2;
#P hidden connect 11 0 50 0;
#P hidden connect 11 0 45 0;
#P pop;
#BP pop 0;
#P bpatcher 53 46 143 122 0 0 Soundfile 2;
#N vpatcher 60 92 890 562;
#P origin 2 -67;
#P hidden user swatch 673 208 32 24;
#P window setfont "Sans Serif" 9.;
#P hidden newex 748 186 62 196617 random 256;
#P hidden newex 684 186 62 196617 random 256;
#P hidden newex 620 186 62 196617 random 256;
#P hidden message 675 235 73 196617 brgb $1 $2 $3;
#P hidden user swatch 686 135 32 24;
#P hidden newex 761 113 62 196617 random 256;
#P hidden newex 697 113 62 196617 random 256;
#P hidden newex 633 113 62 196617 random 256;
#P hidden message 688 162 73 196617 brgb $1 $2 $3;
#P window setfont Arial 9.;
#P hidden newex 365 368 33 131137545 gate~;
#P hidden toggle 352 337 15 0;
#P hidden message 221 375 14 131137545 0;
#P hidden message 191 375 14 131137545 1;
#P hidden newex 191 349 39 131137545 route 1;
#P hidden number 191 330 49 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0
0;
#P user meter~ 1 75 139 87 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P user meter~ 1 64 139 76 50 0 168 0 255 255 255 255 153 0 255 0 0 217 217
0 153 186 0 20 3 3 3 3;
#P flonum 120 86 19 9 0 0 32 2001 255 255 255 0 0 0 222 222 222 0 0 0;
#P hidden message 583 117 14 131137545 1;
#P window setfont Arial 18.;
#P message 103 86 18 131137554 4;
#P message 1 86 35 131137554 0.2;
#P message 35 86 35 131137554 0.5;
#P message 86 86 18 131137554 2;
#P message 69 86 18 131137554 1;
#B color 12;
#P window setfont Arial 9.;
#P hidden message 472 177 48 131137545 speed $1;
#P hidden message 425 118 23 131137545 255;
#P user multiSlider 29 52 110 13 0. 255. 1 2664 47 0 0 2 0 50 0;
#M frgb 86 255 75;
#M brgb 255 255 255;
#M rgb2 99 99 99;
#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;
#N comlet Audio Out Right;
#P hidden outlet 285 449 15 0;
#N comlet Audio Out Left;
#P hidden outlet 157 450 15 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 424 310 135 196617 onepole~ 10633.138672 Hz;
#P hidden comment 361 221 100 196617 Hz.;
#P hidden newex 260 157 63 196617 * 0.052456;
#P hidden newex 260 178 63 196617 t 2. f;
#P hidden flonum 260 138 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 260 199 63 196617 pow 2.;
#P hidden flonum 260 220 101 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 452 330 135 196617 onepole~ 10633.138672 Hz;
#P window setfont Arial 9.;
#P hidden newex 261 162 47 131137545 onepole~;
#P user panel 73 21 66 15;
#X brgb 225 14 244;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 596 72 47 131137545 loadbang;
#P hidden message 540 118 40 131137545 loop $1;
#P window setfont "Sans Serif" 9.;
#P hidden message 452 116 77 196617 name Soundfile;
#P hidden message 191 285 96 196617 getnamed Soundfile;
#P window setfont "Sans Serif" 10.;
#P message 29 36 110 196618 soundfile!!!!!!!!!!!!!!;
#B color 12;
#P window setfont "Sans Serif" 9.;
#P flonum 29 22 45 9 0 0 8256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 1 36 29 0;
#P message 1 22 29 196617 open;
#N sfplay~ 2 120960 0 Soundfile;
#P hidden newobj 463 234 53 196617 sfplay~ 2;
#P user panel 1 22 138 89;
#X brgb 231 142 153;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden newex 191 304 86 196617 sfinfo~;
#B color 5;
#P hidden newex 270 334 62 196617 prepend set;
#P hidden connect 42 0 2 0;
#P hidden connect 21 0 34 0;
#P hidden connect 14 0 35 0;
#P hidden connect 41 0 35 0;
#P hidden connect 1 3 6 0;
#P hidden connect 0 0 7 0;
#P hidden connect 25 0 24 0;
#P hidden connect 11 0 27 0;
#P hidden connect 47 0 12 0;
#P hidden connect 31 0 33 0;
#P hidden connect 29 0 33 0;
#P hidden connect 27 0 33 0;
#P hidden connect 30 0 33 0;
#P hidden connect 28 0 33 0;
#P hidden connect 21 0 22 0;
#P hidden connect 5 0 8 0;
#P hidden connect 3 2 8 0;
#P hidden connect 8 0 1 0;
#P hidden connect 1 0 36 0;
#P hidden connect 36 0 37 0;
#P hidden connect 37 0 38 0;
#P hidden connect 37 1 39 0;
#P hidden connect 24 0 17 0;
#P hidden connect 17 0 19 0;
#P hidden connect 19 0 18 0;
#P hidden connect 18 0 16 0;
#P hidden connect 16 0 15 0;
#P hidden connect 1 5 0 0;
#P hidden connect 41 0 23 0;
#P hidden connect 14 0 23 0;
#P hidden connect 18 1 16 1;
#P hidden connect 38 0 40 0;
#P hidden connect 39 0 40 0;
#P hidden connect 40 0 41 0;
#P hidden connect 21 0 41 1;
#P hidden connect 3 0 21 0;
#P hidden connect 11 0 25 0;
#P hidden connect 11 0 9 0;
#P hidden connect 3 1 14 0;
#P hidden connect 5 0 3 0;
#P hidden connect 26 0 3 0;
#P hidden connect 10 0 3 0;
#P hidden connect 9 0 3 0;
#P hidden connect 4 0 3 0;
#P hidden connect 32 0 26 0;
#P hidden connect 31 0 26 0;
#P hidden connect 30 0 26 0;
#P hidden connect 29 0 26 0;
#P hidden connect 28 0 26 0;
#P hidden connect 27 0 26 0;
#P hidden connect 32 0 10 0;
#P hidden connect 15 0 21 1;
#P hidden connect 15 0 14 1;
#P hidden connect 11 0 32 0;
#P hidden connect 11 0 48 0;
#P hidden connect 11 0 43 0;
#P hidden connect 48 0 51 0;
#P hidden connect 51 0 47 0;
#P hidden connect 11 0 49 0;
#P hidden connect 49 0 51 1;
#P hidden connect 43 0 46 0;
#P hidden connect 46 0 42 0;
#P hidden connect 50 0 51 2;
#P hidden connect 11 0 44 0;
#P hidden connect 44 0 46 1;
#P hidden connect 45 0 46 2;
#P hidden connect 11 0 50 0;
#P hidden connect 11 0 45 0;
#P pop;
#BP pop 0;
#P user ezdac~ 266 286 310 319 0;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P connect 3 1 0 1;
#P connect 2 1 0 1;
#P connect 1 1 0 1;
#P pop;


March 25, 2006 | 12:58 am

Here is a pure Max solution. It’s also pretty trivial to do this with
Javascript, I think it might even be an example. There are a few files
below which should be saved together somewhere in your search path. Use
the specified filenames, which are included as help text in the patches.
These are for "New from Clipboard" because I’m feeling lazy. I’m sure
there are better ways, but this one works for my purposes.

—–
name before filetype (your choice): "guid"

#N comlet returns guid of parent , where argument is #0-id;
#P outlet 97 179 15 0;
#P window setfont "Sans Serif" 10.;
#P window linecount 1;
#P newex 60 60 61 9109514 select bang;
#N comlet bang to return guid portion of #0-id argument;
#P inlet 60 36 15 0;
#P newex 60 112 228 9109514 prepend $1;
#P newex 60 137 84 9109514 regexp ([\\d]+)-id;
#P message 60 89 36 9109514 ignore;
#P connect 1 1 5 0;
#P connect 2 0 1 0;
#P connect 0 0 2 0;
#P connect 4 0 0 0;
#P connect 3 0 4 0;
#P window clipboard copycount 6;

—–
name before filetype (your choice): "guid_bpatcher_test"

#P window setfont "Sans Serif" 9.;
#P message 27 150 50 9109513;
#P window linecount 1;
#P newex 16 102 57 9109513 prepend set;
#P button 11 29 15 0;
#P newex 12 62 48 9109513 guid $0-id;
#P window linecount 2;
#P comment 140 62 100 9109513 save as guid_bpatcher_test.txt;
#P connect 3 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 5;

—–
name before filetype (your choice): "guid_bpatcher_test-parent"
(name doesn’t matter on this one)

#P bpatcher 252 52 101 204 0 0 guid_bpatcher_test.mxt 1;
#P bpatcher 147 52 101 204 0 0 guid_bpatcher_test.mxt 1;
#P bpatcher 42 52 101 204 0 0 guid_bpatcher_test.mxt 1;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 374 50 100 9109513 save this as whatever you want;
#P window clipboard copycount 4;


March 27, 2006 | 9:20 am

n z wrote:
> Hey everyone, Ive made a little audofile player supatch using the
> bpatch. To get sfinfo~ to work within the audiofile player subpatch,
> I’ve had to name the sfplay~ object using loadbang and a message box.
> However, If I have multiple instances of this bpatch in the same max
> patch, the sfinfo~ stops working because of the whole naming thing. Is
> there some way that I can isolate every bpatch?

You need to look into #0 naming. every instance needs its own name,
search the archives its covered approximatly every week once.

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09


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