Forums > MaxMSP

Poly~ Problem

July 5, 2007 | 8:09 pm

Hi,

Is there any reason why sending a bang into a poly~ through an inlet (In 3) to be received by a trigger should cause an error message every time stating wrong message or type?

My Poly~ object is below if u would like a look.

Cheers

Andy

max v2;
#N vpatcher 1256 83 2532 1063;
#P button 607 292 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 927 822 111 196617 Bang Error Sample If Appropriate;
#P window linecount 1;
#N out 4;
#P newobj 930 800 33 196617 out 4;
#P newex 732 554 27 196617 int;
#N in 2;
#P newobj 231 242 25 196617 in 2;
#P comment 211 219 77 196617 Matrix Info In;
#P newex 872 491 90 196617 t i b b;
#P comment 808 822 111 196617 Open Close Hit Window;
#N out 3;
#P newobj 872 800 33 196617 out 3;
#P newex 129 758 27 196617 int;
#P comment 727 823 45 196617 L/M/R?;
#N out 1;
#P newobj 129 800 33 196617 out 1;
#P comment 303 472 100 196617 Define Scale;
#P newex 547 523 27 196617 0.;
#P newex 515 523 27 196617 -2.;
#P newex 483 523 27 196617 0.;
#P newex 146 362 66 196617 t b b b b b;
#P newex 146 659 52 196617 thispoly~;
#N out 2;
#P newobj 732 800 33 196617 out 2;
#P newex 813 522 27 196617 3;
#P newex 781 522 27 196617 2;
#P newex 749 522 27 196617 1;
#N in 3;
#P newobj 607 242 25 196617 in 3;
#N in 4;
#P newobj 1017 242 25 196617 in 4;
#N in 1;
#P newobj 146 242 25 196617 in 1;
#P window linecount 3;
#P comment 882 374 74 196617 Move Vertically using a line;
#P window linecount 1;
#P message 649 375 39 196617 seed 0;
#P newex 607 339 40 196617 t b b b;
#P button 1017 412 15 0;
#P button 872 413 15 0;
#N vpatcher 117 184 1249 872;
#N comlet End of Shrink – Return Size;
#P outlet 855 469 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 855 417 30 196617 t b b;
#P newex 111 239 34 196617 defer;
#N comlet Bang Error Sample if Appropriate;
#P outlet 626 469 15 0;
#P newex 111 332 27 196617 1;
#P newex 139 332 27 196617 0;
#P newex 294 139 30 196617 t b b;
#P newex 140 167 27 196617 1;
#P toggle 111 192 15 0;
#P newex 111 167 27 196617 0;
#P newex 111 286 94 196617 select 10 11;
#N counter 11;
#X flags 0 0;
#P newobj 111 260 66 196617 counter 11;
#P newex 111 218 58 196617 metro 713;
#P button 256 98 31 0;
#N comlet Open/Close Hit Window;
#P outlet 111 469 15 0;
#P comment 573 314 30 196617 Hide;
#P comment 441 315 72 196617 Start removal;
#P newex 803 255 30 196617 t b b;
#P newex 691 352 40 196617 t f f f;
#P newex 691 329 27 196617 2.;
#P message 640 392 14 196617 2;
#P newex 554 392 82 196617 line 0.;
#B color 5;
#P message 554 332 84 196617 -0.4 , -2 500 50;
#P newex 314 253 75 196617 line 2.;
#B color 5;
#P message 314 218 100 196617 1.5 , -0.31 7592 50;
#P newex 888 392 82 196617 line 0.;
#B color 5;
#P message 888 332 62 196617 0.2 , 0. 300;
#P newex 803 392 82 196617 line 0.;
#B color 5;
#P message 803 332 73 196617 -0.16 , 0. 300;
#P newex 431 392 82 196617 line 0.;
#B color 5;
#P message 431 332 99 196617 -0.31 , -0.4 500 50;
#N comlet Bang Shrink;
#P inlet 803 115 15 0;
#N comlet Start Object Moving;
#P inlet 294 115 15 0;
#N comlet Shrink Y;
#P outlet 888 469 15 0;
#N comlet Change Y Pos Out;
#P outlet 314 469 15 0;
#N comlet Shrink X;
#P outlet 803 469 15 0;
#P comment 295 98 100 196617 Start Object Falling;
#P comment 842 229 202 196617 Shrink Object if Successfully hit;
#P window linecount 3;
#P comment 682 258 100 196617 Once Shrunk Move Immediately to Start Point;
#P fasten 28 1 29 0 158 318 88 318 88 160 116 160;
#P connect 29 0 30 0;
#P fasten 31 0 30 0 145 188 116 188;
#P connect 30 0 26 0;
#P connect 26 0 36 0;
#P connect 36 0 27 0;
#P connect 27 0 28 0;
#P connect 28 0 34 0;
#P connect 34 0 24 0;
#P fasten 33 0 24 0 144 435 116 435;
#P fasten 28 1 33 0 158 318 144 318;
#P fasten 32 0 31 0 299 161 145 161;
#P connect 6 0 32 0;
#P fasten 25 0 32 0 261 134 299 134;
#P connect 32 1 14 0;
#P connect 14 0 15 0;
#P fasten 20 2 15 0 726 382 666 382 666 244 319 244;
#P fasten 9 0 4 0 436 434 319 434;
#P fasten 17 0 4 0 559 434 319 434;
#P fasten 18 0 4 0 645 434 319 434;
#P connect 15 0 4 0;
#P fasten 15 1 8 0 384 301 436 301;
#P connect 8 0 9 0;
#P fasten 20 0 9 0 696 382 436 382;
#P fasten 9 1 16 0 508 415 532 415 532 315 559 315;
#P connect 16 0 17 0;
#P fasten 20 1 17 0 711 382 559 382;
#P connect 17 1 35 0;
#P connect 17 1 18 0;
#P fasten 37 1 19 0 880 443 762 443 762 316 696 316;
#P connect 19 0 20 0;
#P connect 7 0 21 0;
#P connect 21 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 3 0;
#P fasten 11 1 37 0 880 413 860 413;
#P connect 37 0 38 0;
#P fasten 21 1 12 0 828 302 893 302;
#P connect 12 0 13 0;
#P connect 13 0 5 0;
#P pop;
#P newobj 872 461 155 196617 p Lines;
#P comment 920 221 209 196617 Bank to shrink object away if successful hit;
#P newex 607 424 27 196617 t i i;
#P newex 671 522 27 196617 0.9;
#P newex 639 522 27 196617 0;
#P newex 607 522 30 196617 -0.9;
#P newex 607 461 107 196617 select 0 1 2;
#P newex 607 397 52 196617 random 3;
#P comment 465 221 336 196617 Bang to randomly choose horizontal position and start vertical movement;
#P newex 306 498 84 196617 t b b b;
#P newex 380 522 27 196617 0;
#P newex 343 522 27 196617 0.2;
#P newex 306 522 36 196617 -0.16;
#P newex 269 646 122 196617 pak scale 0. 0. 0.;
#P newex 571 646 118 196617 pak position 0. 0. 0.;
#P newex 231 685 299 196617 jit.gl.videoplane ken @depth_enable 0 @layer 1 @blend_enable 1;
#P comment 762 556 100 196617 Which Horizontal Out;
#P comment 477 472 100 196617 Define Start position;
#P comment 89 822 116 196617 Which Instance to test;
#P comment 131 219 59 196617 Loadbang In;
#P fasten 43 1 40 0 917 718 134 718;
#P connect 40 0 38 0;
#P connect 25 0 33 0;
#P connect 33 0 32 0;
#P connect 32 0 40 1;
#P connect 45 0 4 0;
#P fasten 5 0 4 0 576 674 236 674;
#P fasten 6 0 4 0 274 674 236 674;
#P fasten 33 1 10 0 165 451 311 451;
#P fasten 19 4 10 0 993 488 311 488;
#P connect 10 0 7 0;
#P fasten 19 3 6 1 964 581 311 581;
#P connect 7 0 6 1;
#P fasten 10 1 8 0 348 518 348 518;
#P fasten 19 5 6 2 1022 581 348 581;
#P connect 8 0 6 2;
#P fasten 10 2 9 0 385 518 385 518;
#P connect 9 0 6 3;
#P fasten 33 2 34 0 179 451 488 451;
#P fasten 33 3 35 0 193 451 520 451;
#P fasten 33 4 36 0 207 451 552 451;
#P connect 27 0 49 0;
#P connect 49 0 22 0;
#P connect 22 0 12 0;
#P connect 12 0 17 0;
#P connect 17 0 13 0;
#P connect 13 0 14 0;
#P fasten 16 0 5 1 676 581 612 581;
#P fasten 14 0 5 1 612 592 612 592;
#P fasten 15 0 5 1 644 581 612 581;
#P fasten 34 0 5 1 488 581 612 581;
#P connect 13 1 15 0;
#P fasten 19 1 5 2 906 581 648 581;
#P fasten 35 0 5 2 520 581 648 581;
#P fasten 22 1 23 0 627 363 654 363;
#P connect 23 0 12 1;
#P connect 13 2 16 0;
#P fasten 36 0 5 3 552 581 684 581;
#P fasten 43 2 46 0 957 546 737 546;
#P connect 46 0 31 0;
#P fasten 13 0 28 0 612 500 754 500;
#P fasten 30 0 46 1 818 546 754 546;
#P connect 28 0 46 1;
#P fasten 29 0 46 1 786 546 754 546;
#P fasten 13 1 29 0 644 500 786 500;
#P fasten 13 2 30 0 676 500 818 500;
#P fasten 22 2 20 0 642 363 877 363;
#P connect 20 0 19 0;
#P fasten 19 0 43 0 877 484 877 484;
#P connect 43 0 41 0;
#P connect 19 2 47 0;
#P connect 26 0 21 0;
#P connect 21 0 19 1;
#P pop;


July 5, 2007 | 9:24 pm

On 5 juil. 07, at 22:09, Andy Brennan wrote:

> Hi,
>
> Is there any reason why sending a bang into a poly~ through an
> inlet (In 3) to be received by a trigger should cause an error
> message every time stating wrong message or type?
>
> My Poly~ object is below if u would like a look.

the seed message is connected to the wrong random inlet (it should be
connected to the leftmost). By the way, I’m not sure if it’ll be
"more" random if you send "seed 0" each time ;-)

ej


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