diff options
Diffstat (limited to 'doc/tutorials/intro/sorting_messages_by_type.pd')
-rw-r--r-- | doc/tutorials/intro/sorting_messages_by_type.pd | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/tutorials/intro/sorting_messages_by_type.pd b/doc/tutorials/intro/sorting_messages_by_type.pd new file mode 100644 index 00000000..12e84c05 --- /dev/null +++ b/doc/tutorials/intro/sorting_messages_by_type.pd @@ -0,0 +1,47 @@ +#N canvas 565 106 627 443 12; +#X obj -60 8 cnv 15 400 40 empty empty sorting_messages_by_type 20 +12 0 24 -228992 -66577 0; +#X text -50 63 When processing messages \, some operations should only +be applied to messages of a certain type. [route] allows you to sort +messages by type:; +#X floatatom 168 339 5 0 0 0 - - -; +#X symbolatom 237 338 10 0 0 0 - - -; +#X obj 100 359 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 +-1 -1; +#X obj 100 315 route bang float symbol list; +#X obj 168 359 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 +-1 -1; +#X obj 237 359 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 +-1 -1; +#X obj 306 359 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 +-1 -1; +#X obj 375 359 bng 15 250 50 0 empty empty selector_series -18 23 1 +12 -262144 -1 -1; +#X msg -43 173 bang; +#X msg 34 196 642.3; +#X msg 109 170 symbol moshimoshi; +#X msg 129 194 symbol sayonara; +#X obj -9 198 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 331 171 1 2 3; +#X msg 344 194 5 for free!; +#X msg 345 228 list here we go...; +#X msg 345 261 not a list? nope...; +#X msg 11 172 float 5; +#X connect 2 0 6 0; +#X connect 3 0 7 0; +#X connect 5 0 4 0; +#X connect 5 1 2 0; +#X connect 5 2 3 0; +#X connect 5 3 8 0; +#X connect 5 4 9 0; +#X connect 10 0 5 0; +#X connect 11 0 5 0; +#X connect 12 0 5 0; +#X connect 13 0 5 0; +#X connect 14 0 5 0; +#X connect 15 0 5 0; +#X connect 16 0 5 0; +#X connect 17 0 5 0; +#X connect 18 0 5 0; +#X connect 19 0 5 0; |