#N canvas 6 61 570 713 10; #X declare -lib Gem; #X obj 96 51 gemreceive; #X text 169 51 ordered receive; #X obj 72 227 gemreceive foo -1; #X obj 72 249 print first; #X obj 412 227 gemreceive foo 12; #X obj 412 249 print third; #X obj 282 227 gemreceive foo 1996; #X obj 282 249 print fourth; #X obj 182 249 print second; #X obj 72 196 s foo; #X text 58 91 [gemreceive] takes an additional argument (compared to Pd's [receive]) that specifies the priority.; #X text 61 136 The higher the number \, the later the object will receive! ; #X obj 182 227 gemreceive foo; #X text 223 169 the default priority is "0"; #X text 76 298 1st inlet allows you to change the receiver name; #X obj 107 371 gemreceive bar; #X obj 107 393 print foobar; #X msg 235 337 FOO; #X msg 273 337 BAR; #X obj 273 359 s bar; #X msg 123 351 symbol bar; #X text 80 443 2nd inlet let's you change the priority on the fly; #X obj 116 610 gemreceive foobar 10; #X obj 252 610 gemreceive foobar 20; #X obj 116 632 print left; #X obj 252 632 print right; #X msg 116 464 left2right; #X obj 116 518 t a a; #X obj 233 520 route left2right right2left; #X msg 202 464 right2left; #X msg 233 542 10 20; #X msg 312 543 20 10; #X obj 233 564 unpack; #X obj 116 540 s foobar; #X msg 72 173 bang; #X obj 235 359 s fou; #X msg 107 331 symbol fou; #X obj 448 18 declare -lib Gem; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 6 0 7 0; #X connect 12 0 8 0; #X connect 15 0 16 0; #X connect 17 0 35 0; #X connect 18 0 19 0; #X connect 20 0 15 0; #X connect 22 0 24 0; #X connect 23 0 25 0; #X connect 26 0 27 0; #X connect 27 0 33 0; #X connect 27 1 28 0; #X connect 28 0 30 0; #X connect 28 1 31 0; #X connect 29 0 27 0; #X connect 30 0 32 0; #X connect 31 0 32 0; #X connect 32 0 22 1; #X connect 32 1 23 1; #X connect 34 0 9 0; #X connect 36 0 15 0;