Forums > MaxMSP

new poly problems

April 22, 2006 | 2:31 pm

okay, i took a live looper patch, very generously donated by a fellow board member and adapted it for use inside a poly object.

audio runs through the object, as intended, but when i attempt to loop (using a toggle in its right inlet, on begins recording, off starts looping) nothing but a error message in the max window happens, and the audio remains as the input

the following patcher is intended for use within the poly~ object

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N out 1;
#P newobj 1189 247 33 196617 out 1;
#P newex 933 511 48 196617 loadbang;
#P newex 296 434 91 196617 receive ext_name;
#P newex 407 314 122 196617 receive waveform_name;
#P newex 955 361 108 196617 send waveform_name;
#P newex 956 335 159 196617 sprintf set set internal_send%ld;
#P newex 592 514 111 196617 receive internal_name;
#P newex 224 120 111 196617 receive internal_name;
#P newex 72 113 111 196617 receive internal_name;
#P newex 1130 333 77 196617 send ext_name;
#P newex 987 304 97 196617 send internal_name;
#P newex 29 155 86 196617 send~ test_audio;
#N in~ 1;
#X comment audio in;
#P newobj 30 113 33 196617 in~ 1;
#P newex 987 270 139 196617 sprintf set internal_send%ld;
#P newex 1130 271 117 196617 sprintf set ext_loop%ld;
#P newex 1130 176 48 196617 loadbang;
#N out~ 2;
#X comment right audio;
#P newobj 620 716 39 196617 out~ 2;
#N out~ 1;
#X comment left audio;
#P newobj 569 716 39 196617 out~ 1;
#P newex 1130 220 52 196617 thispoly~;
#N in 2;
#X comment toggle on off loop switch;
#P newobj 465 111 25 196617 in 2;
#P toggle 685 337 15 0;
#P newex 709 355 29 196617 gate;
#P newex 714 314 21 196617 t 1;
#B color 5;
#P message 718 551 54 196617 ramp 100;
#P user meter~ 507 495 520 564 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P newex 776 286 41 196617 sel 0 1;
#B color 5;
#P message 906 422 61 196617 2 0 0 3 1 0;
#P message 837 423 61 196617 2 0 1 3 1 1;
#P message 772 424 61 196617 0 0 0 1 1 0;
#P message 705 425 61 196617 0 0 1 1 1 1;
#P user matrixctrl 774 458 73 38 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 73 38 16 16 4 2 16 16 1 1 48 2 5120 0;
#P newex 592 545 100 196617 receive~ test_audio;
#P newex 586 638 77 196617 matrix~ 4 2 1.;
#P newex 224 153 100 196617 receive~ test_audio;
#P user meter~ 211 213 224 282 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P message 161 378 29 196617 stop;
#P flonum 289 368 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 569 347 87 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 567 324 55 196617 clocker 1.;
#B color 5;
#P user waveform~ 384 372 257 42 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P newex 365 314 30 196617 t b b;
#P message 385 345 101 196617 set internal_send0;
#P flonum 536 418 52 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 483 418 52 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 290 391 41 196617 sig~ 1.;
#P message 240 367 35 196617 loop 1;
#P message 199 384 50 196617 startloop;
#P newex 280 468 74 196617 groove~ bob 2;
#P user number~ 262 267 301 282 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 388 279 41 196617 sel 1 0;
#P toggle 465 145 48 0;
#P newex 262 243 73 196617 record~ bob 2;
#P newex 1191 306 128 196617 buffer~ ext_loop 10000 2;
#P connect 38 0 43 0;
#P connect 38 0 0 0;
#P connect 34 0 47 0;
#P connect 34 0 39 0;
#P connect 34 0 38 0;
#P connect 34 0 52 0;
#P connect 37 0 34 0;
#P connect 39 0 42 0;
#P connect 47 0 48 0;
#P connect 31 0 26 0;
#P connect 51 0 23 0;
#P connect 51 0 29 0;
#P connect 51 0 26 0;
#P connect 27 0 30 0;
#P connect 27 0 24 0;
#P connect 27 0 25 0;
#P fasten 2 0 1 0 470 218 267 218;
#P fasten 2 0 3 0 470 236 393 236;
#P fasten 2 0 14 0 470 258 572 258;
#P connect 2 0 27 0;
#P connect 23 0 22 0;
#P connect 25 0 22 0;
#P connect 24 0 22 0;
#P connect 26 0 22 0;
#P connect 27 1 31 1;
#P connect 32 0 31 0;
#P connect 31 0 23 0;
#P connect 30 0 32 0;
#P connect 5 1 20 3;
#P connect 5 0 20 2;
#P connect 20 1 36 0;
#P connect 21 0 28 0;
#P connect 21 0 20 0;
#P connect 21 0 20 1;
#P connect 46 0 21 0;
#P connect 22 0 20 0;
#P connect 29 0 20 0;
#P connect 20 0 35 0;
#P connect 14 0 15 0;
#P connect 15 0 13 3;
#P connect 13 3 10 0;
#P connect 13 2 9 0;
#P connect 33 0 2 0;
#P connect 12 1 11 0;
#P connect 49 0 11 0;
#P connect 11 0 13 0;
#P fasten 3 1 12 0 408 311 370 311;
#P connect 10 0 5 2;
#P connect 9 0 5 1;
#P connect 16 0 8 0;
#P connect 19 0 18 0;
#P connect 19 0 1 0;
#P connect 19 0 1 1;
#P fasten 7 0 5 0 245 403 285 403;
#P fasten 6 0 5 0 204 401 285 401;
#P connect 8 0 5 0;
#P fasten 17 0 5 0 166 406 285 406;
#P connect 50 0 5 0;
#P connect 1 0 4 0;
#P fasten 12 0 6 0 370 354 204 354;
#P fasten 12 0 7 0 370 354 245 354;
#P connect 45 0 19 0;
#P fasten 3 0 17 0 393 306 166 306;
#P connect 40 0 41 0;
#P connect 44 0 41 0;
#P window clipboard copycount 53;


Viewing 1 post (of 1 total)