Forums > MaxMSP

running simultanious same bpatches at the time

August 30, 2006 | 3:50 am

anyone around!
im running with a problem that is running the same bptach _twice_ in a top level one. Everytime i perform some action on anyone, that action would repeat itself in the other same bpatch.

is there a way to separate boths. the patch is a playback-loop soundfile player with a waveform display. is guess the display triggers the isue. i tried to use it as several bpatches and that works fine.

heres the thingi.

max v2;
#N vpatcher 8 44 1022 764;
#P origin 105 0;
#P window setfont "Sans Serif" 9.;
#P newex 521 619 30 196617 dac~;
#P inlet 778 96 15 0;
#P user umenu 419 92 107 196647 1 64 108 1;
#X setrgb 1 16 131 255 122 25 255 255 255 221 221 221 170 170 170 119 119 119 187 187 187;
#X add pryct-agst-01.aif;
#X add pryct-agst-02.aif;
#X add Untitled.aif;
#P button 524 92 15 0;
#P button 296 174 15 0;
#P number 296 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 538 92 15 0;
#P outlet 611 616 15 0;
#P outlet 586 616 15 0;
#P message 738 92 14 196617 0;
#P message 707 92 14 196617 1;
#P button 354 207 15 0;
#P toggle 411 256 15 0;
#P message 720 92 19 196617 -1;
#P newex 778 127 30 196617 t s b;
#P newex 778 163 81 196617 prepend replace;
#P newex 393 62 61 196617 soundfolder;
#P message 393 92 29 196617 open;
#P flonum 500 332 45 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 500 310 74 196617 snapshot~ 100;
#P newex 664 234 132 196617 expr (($f3-$f2)*$f1)+$f2;
#P message 664 252 41 196617 line $1;
#P user pictslider 393 108 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2402 0 0 196608 1. 1.;
#P comment 1037 258 47 196617 select all;
#P message 1034 272 51 196617 0 -1 0 -1;
#P message 438 478 138 196617 import drumLoop.mp3 0 -1 1;
#N vpatcher 40 55 278 404;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 196617 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 196617 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 196617 < < 1;
#P newex 96 140 40 196617 change;
#P newex 96 164 45 196617 select 0;
#P newex 96 117 27 196617 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 196617 modifiers 100;
#P connect 5 0 7 0;
#P connect 7 0 2 0;
#P connect 0 3 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 6 0 9 0;
#P connect 3 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 3 1 8 0;
#P connect 9 0 8 0;
#P connect 8 0 1 0;
#P pop;
#P newobj 595 251 50 196617 p wfkeys;
#P message 438 464 70 196617 import 0 -1 1;
#P message 883 417 35 196617 set $1;
#P message 787 417 35 196617 set $1;
#P message 691 406 35 196617 set $1;
#P message 590 317 35 196617 set $1;
#P comment 712 508 242 196617 clips sample values to window display in draw mode;
#P toggle 695 507 15 0;
#P message 633 507 62 196617 clipdraw $1;
#P user meter~ 740 109 753 184 100 0 168 0 104 104 104 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 725 109 15 53 158 0 1.071519 7.94321 10.;
#P button 695 522 15 0;
#P newex 632 521 29 196617 float;
#P comment 712 523 174 196617 normalize buffer~ (destructive edit);
#P flonum 660 522 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 631 555 65 196617 normalize $1;
#P newex 635 419 45 196617 loadbang;
#P message 635 454 14 196617 1;
#P comment 712 493 237 196617 set vertical offset (amplitude at middle of display);
#P flonum 675 492 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 620 492 55 196617 voffset $1;
#P comment 712 478 273 196617 set vertical zoom (amplitude from middle to top of display);
#P comment 712 463 92 196617 undo last selection;
#P comment 712 538 247 196617 crop buffer~ to current selection (destructive edit);
#P message 682 462 28 196617 undo;
#P flonum 675 477 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 620 477 55 196617 vzoom $1;
#P message 682 537 28 196617 crop;
#P comment 946 275 68 196617 select end ms;
#P comment 824 275 75 196617 select start ms;
#P comment 702 275 83 196617 display length ms;
#P flonum 955 289 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 835 289 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 715 289 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 595 289 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 445 213 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 490 231 45 196617 loadbang;
#P message 490 272 35 196617 loop 1;
#P message 490 251 49 196617 startloop;
#P newex 346 255 35 196617 sig~ 1;
#P newex 379 338 62 196617 groove~ foo;
#P message 438 450 41 196617 replace;
#P newex 439 506 85 196617 buffer~ foo 1000;
#P message 662 447 48 196617 set foo 1;
#P user waveform~ 412 109 312 75 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 50.;
#W ticks 0.;
#W labels 1;
#W vlabels 1;
#W vticks 1;
#W bpm 232.105255 4.;
#W frgb 16 0 0;
#W brgb 255 255 255;
#W rgb2 63 112 185;
#W rgb3 50 50 50;
#W rgb4 255 255 255;
#W rgb5 48 85 46;
#W rgb6 17 27 165;
#W rgb7 140 140 140;
#P comment 582 275 83 196617 display start ms;
#P comment 439 431 148 196617 • read a sound file into buffer~;
#P comment 712 448 178 196617 link waveform~ to [ buffer , channel];
#P message 614 38 27 196617 stop;
#P message 532 39 65 196617 startwindow;
#P comment 444 383 70 196617 • start audio.;
#P user panel 430 379 123 43;
#X brgb 255 255 255;
#X frgb 100 202 30;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 1052 366 47 196617 select all;
#P message 1049 380 51 196617 0 -1 0 -1;
#P comment 436 10 463 196617 display the waveform of a sound file without loading it in a buffer~;
#P message 151 72 41 196617 resume;
#P message 119 72 33 196617 pause;
#P toggle 191 72 15 0;
#P message 205 72 41 196617 loop $1;
#P user umenu 90 86 107 196647 1 64 102 1;
#X setrgb 1 16 131 255 122 25 255 255 255 221 221 221 170 170 170 119 119 119 187 187 187;
#X add pryct-agst-01.aif;
#X add pryct-agst-02.aif;
#X add Untitled.aif;
#N comlet output R;
#P outlet 110 288 15 0;
#N comlet output L;
#P outlet 76 288 15 0;
#P button 196 87 15 0;
#P message 210 87 14 196617 0;
#P newex 168 35 61 196617 soundfolder;
#P message 92 72 29 196617 open;
#P newex 1 205 61 196617 pipe 100;
#P newex 76 153 175 196617 sprintf preload %d %s;
#P newex 76 125 29 196617 + 2;
#N sfplay~ 2 120960 0 ;
#P newobj 76 248 79 196617 sfplay~ 2;
#P comment 203 73 26 196617 loop;
#P user panel 90 71 135 120;
#X brgb 11 162 221;
#X frgb 0 0 0;
#X border 1;
#X rounded 9;
#X shadow 0;
#X done;
#P comment 459 155 40 196617 rewind;
#P fasten 4 0 6 0 81 169 6 169;
#P connect 13 0 4 0;
#P connect 4 0 5 0;
#P fasten 5 0 3 0 81 248 81 248;
#P fasten 6 0 3 0 6 267 81 267;
#P connect 9 0 3 0;
#P connect 14 0 3 0;
#P connect 16 0 3 0;
#P connect 17 0 3 0;
#P connect 3 0 11 0;
#P connect 8 0 13 0;
#P connect 10 0 13 0;
#P connect 3 1 12 0;
#P connect 7 0 8 0;
#P connect 15 0 14 0;
#P connect 13 1 5 1;
#P fasten 94 0 93 0 301 209;
#P connect 88 0 33 0;
#P connect 85 0 33 0;
#P connect 37 0 33 0;
#P connect 92 0 33 0;
#P connect 93 0 33 0;
#P connect 89 0 32 0;
#P connect 86 0 32 0;
#P connect 34 0 32 0;
#P connect 35 0 32 0;
#P connect 33 0 32 0;
#P connect 81 0 82 0;
#P fasten 28 2 32 1 537 406 568 406 568 269 410 269;
#P fasten 64 0 28 0 638 530 417 530;
#P fasten 57 0 28 0 636 580 417 580;
#P fasten 45 0 28 0 687 561 417 561;
#P connect 48 0 28 0;
#P connect 38 0 28 0;
#P connect 29 0 28 0;
#P connect 46 0 28 0;
#P connect 52 0 28 0;
#P connect 72 0 28 0;
#P connect 77 0 28 0;
#P connect 82 2 96 0;
#P fasten 28 3 32 2 597 410 563 410 563 288 436 288;
#P connect 31 0 30 0;
#P connect 71 0 30 0;
#P connect 73 0 30 0;
#P connect 83 0 30 0;
#P connect 87 0 37 0;
#P connect 39 0 28 1;
#P connect 36 0 34 0;
#P connect 36 0 35 0;
#P connect 32 1 79 0;
#P connect 79 0 80 0;
#P fasten 23 0 98 0 537 73 288 73 288 595 526 595;
#P fasten 62 0 98 0 730 198 526 198;
#P connect 95 0 92 0;
#P fasten 24 0 98 1 619 73 310 73 310 595 546 595;
#P fasten 62 0 98 1 730 198 546 198;
#P connect 40 0 28 2;
#P connect 28 0 67 0;
#P connect 76 1 72 0;
#P connect 67 0 38 0;
#P connect 47 0 46 0;
#P connect 53 0 52 0;
#P connect 60 0 57 0;
#P connect 61 0 60 0;
#P connect 65 0 64 0;
#P connect 56 0 55 0;
#P connect 41 0 28 3;
#P connect 58 0 60 1;
#P connect 55 0 58 0;
#P fasten 56 0 29 0 640 443 667 443;
#P connect 30 1 29 0;
#P connect 79 0 78 0;
#P connect 78 0 77 0;
#P connect 55 0 47 0;
#P connect 28 1 68 0;
#P fasten 74 0 28 4 1039 289 717 289;
#P connect 68 0 39 0;
#P connect 32 0 62 0;
#P connect 28 2 78 1;
#P connect 62 0 63 0;
#P connect 97 0 84 0;
#P connect 84 0 83 0;
#P connect 28 3 78 2;
#P connect 28 2 69 0;
#P connect 69 0 40 0;
#P connect 28 3 70 0;
#P connect 70 0 41 0;
#P pop;

thanxs all



jbm
August 30, 2006 | 7:14 am

With just a quick look I’m wondering how you could duplicate this patch (into bpatchers) without having unique names for each buffer~/groove~ pair.

J.


August 30, 2006 | 1:49 pm

Quote: jbmaxwell@btinternet.com wrote on Wed, 30 August 2006 01:14
—————————————————-
> With just a quick look I’m wondering how you could duplicate this patch (into bpatchers) without having unique names for each buffer~/groove~ pair.
>
> J.
—————————————————-

well maybe he will give the buffers and waveforms different
names in the next version of the bpatcher?

-110


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