User Tools

Site Tools


the_patch

Wireless and Space interaction in puredata

#N canvas 51 51 923 689 12;
#X declare -lib mrpeach;
#X obj 26 13 import mrpeach;
#X obj 27 68 udpreceive 50000;
#X obj 27 133 unpackOSC;
#X obj 27 175 print;
#X obj 27 211 s up;
#X obj 392 583 change;
#X obj 392 627 bng 25 250 50 0 sms_received empty bang_2 1 -7 0 10
-228856 -1 -1;
#X obj 26 270 cnv 15 220 140 empty empty receive_data 20 12 0 14 -204786
-66577 0;
#X text 74 174 // print received data \, raw;
#X text 74 213 // send to the route object;
#X obj 263 270 cnv 15 220 140 empty empty receive_conversation 20 12
0 14 -261234 -66577 0;
#X obj 26 426 cnv 15 220 140 empty empty receive_signal 20 12 0 14
-204800 -66577 0;
#X obj 263 426 cnv 15 220 140 empty empty receive_sms 20 12 0 14 -262130
-66577 0;
#X obj 541 22 cnv 15 340 300 empty empty arduino_part 20 12 0 14 -203904
-66577 0;
#X obj 47 326 OSCroute /data;
#X floatatom 47 377 5 0 0 0 - - -;
#X obj 47 299 r up;
#X text 70 352 accumulate:;
#X obj 155 353 +;
#X floatatom 155 382 10 0 0 0 - - -;
#X floatatom 283 375 5 0 0 0 - - -;
#X obj 283 298 r up;
#X text 306 351 accumulate:;
#X obj 391 352 +;
#X floatatom 391 381 10 0 0 0 - - -;
#X floatatom 46 533 5 0 0 0 - - -;
#X obj 46 453 r up;
#X text 69 506 accumulate:;
#X obj 168 508 +;
#X floatatom 168 537 10 0 0 0 - - -;
#X floatatom 284 533 5 0 0 0 - - -;
#X obj 284 453 r up;
#X text 307 506 accumulate:;
#X obj 392 507 +;
#X floatatom 392 536 10 0 0 0 - - -;
#X obj 46 480 OSCroute /signal;
#X obj 284 480 OSCroute /sms;
#X obj 283 325 OSCroute /conversation;
#X obj 356 580 bng 25 250 50 0 empty empty bang_1 0 -7 0 10 -262144
-1 -1;
#X text -21 602 the number box bangs;
#X text -20 585 this bang shows that every time we receive a value
>;
#X text 40 632 this bang only bangs when the value has changed >;
#X obj 562 288 comport 9600;
#X msg 562 48 devices;
#X text 660 287 comport object talks to arduino;
#X msg 576 140 open \$1;
#X floatatom 576 77 5 0 0 0 - - -;
#X text 628 47 click to list available ports;
#X text 631 78 type here the correct number;
#X text 585 120 click to open the port;
#X text 635 164 click to close the port;
#X msg 637 141 close;
#X obj 540 338 cnv 15 340 230 empty empty interaction 20 12 0 14 -258113
-66577 0;
#X obj 562 366 bng 25 250 50 0 empty sms_received empty 17 7 0 10 -228856
-1 -1;
#X text 597 369 paired with bang 2 (see properties!);
#X msg 562 414 255;
#X msg 562 488 0;
#X floatatom 645 462 5 0 0 0 - - -;
#X obj 562 461 delay 1000;
#X obj 562 529 s cntrl;
#X obj 637 205 r cntrl;
#X obj 562 440 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 642 438 change delay time (miliseconds);
#X obj 640 236 hsl 128 15 0 255 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X text 636 255 slider shows the value received;
#X text 596 413 turn LED on;
#X text 598 488 turn LED off;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 4 0;
#X connect 5 0 6 0;
#X connect 14 0 15 0;
#X connect 15 0 18 0;
#X connect 16 0 14 0;
#X connect 18 0 19 0;
#X connect 19 0 18 1;
#X connect 20 0 23 0;
#X connect 21 0 37 0;
#X connect 23 0 24 0;
#X connect 24 0 23 1;
#X connect 25 0 28 0;
#X connect 26 0 35 0;
#X connect 28 0 29 0;
#X connect 29 0 28 1;
#X connect 30 0 33 0;
#X connect 31 0 36 0;
#X connect 33 0 34 0;
#X connect 34 0 33 1;
#X connect 34 0 5 0;
#X connect 34 0 38 0;
#X connect 35 0 25 0;
#X connect 36 0 30 0;
#X connect 37 0 20 0;
#X connect 43 0 42 0;
#X connect 45 0 42 0;
#X connect 46 0 45 0;
#X connect 51 0 42 0;
#X connect 53 0 55 0;
#X connect 55 0 61 0;
#X connect 55 0 59 0;
#X connect 56 0 59 0;
#X connect 57 0 58 1;
#X connect 58 0 56 0;
#X connect 60 0 42 0;
#X connect 60 0 63 0;
#X connect 61 0 58 0;
the_patch.txt · Last modified: 2014/01/27 13:54 by zoza