瀏覽代碼

Initial commit

Etienne Landon 6 年之前
當前提交
8fccaa3928
共有 2 個文件被更改,包括 228 次插入0 次删除
  1. 104 0
      OSCserial.pd
  2. 124 0
      superpile.pd

+ 104 - 0
OSCserial.pd

@@ -0,0 +1,104 @@
+#N canvas 529 456 895 503 10;
+#X obj 301 51 cnv 15 60 22 empty empty list_serial 18 12 0 7 -233017
+-66577 0;
+#X obj 99 362 outlet;
+#X msg 124 159 devices;
+#X obj 429 50 route 0 1;
+#X msg 429 132 close;
+#X obj 99 231 mrpeach/slipdec 65536;
+#X obj 99 291 mrpeach/unpackOSC;
+#X obj 48 240 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 301 74 tgl 60 0 \$0-serialConnect empty connect 2 30 0 14 -24198
+-166441 -262144 1 1;
+#X obj 13 75 loadbang;
+#X obj 13 116 metro 200;
+#X msg 13 137 info;
+#X obj 291 213 route open;
+#X obj 13 96 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
+;
+#N canvas 1 55 627 300 \$0-colors 0;
+#X obj 129 54 route 0 1;
+#X obj 138 179 outlet;
+#X floatatom 243 160 5 0 0 0 - - -, f 5;
+#X msg 243 180 color \$1 \$1 \$1;
+#X msg 101 107 color 13 13 0 \, label connect \, set 0;
+#X msg 141 127 color 16 1 0 \, label connect;
+#X obj 129 33 r \$0-serialIsOpen;
+#X msg 343 153 color 16 1 15 \, label connect;
+#X obj 364 81 r \$0-serialReceive;
+#X obj 357 131 spigot;
+#X connect 0 0 4 0;
+#X connect 0 1 5 0;
+#X connect 2 0 3 0;
+#X connect 3 0 1 0;
+#X connect 4 0 1 0;
+#X connect 5 0 1 0;
+#X connect 6 0 0 0;
+#X connect 6 0 9 1;
+#X connect 7 0 1 0;
+#X connect 8 0 9 0;
+#X connect 9 0 7 0;
+#X restore 303 12 pd \$0-colors;
+#X obj 99 252 t a b;
+#N canvas 1 55 450 300 serialReceiveGUI 0;
+#X obj 70 23 inlet;
+#X obj 70 44 t b b;
+#X obj 70 81 delay 50;
+#X floatatom 178 68 5 0 0 0 - - -, f 5;
+#X msg 151 90 color 10 10 11;
+#X msg 59 124 color 10 10 10;
+#X obj 72 163 s \$0-serialReceive;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X connect 1 1 4 0;
+#X connect 2 0 5 0;
+#X connect 3 0 4 0;
+#X connect 4 0 6 0;
+#X connect 5 0 6 0;
+#X restore 142 268 pd serialReceiveGUI;
+#X obj 300 55 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X obj 569 253 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 569 273 metro 1000;
+#X msg 569 294 1;
+#X obj 563 221 == 0;
+#X obj 99 200 comport;
+#X obj 112 329 s /\$1-fromOSC;
+#X obj 429 31 r \$0-serialConnect;
+#X obj 290 243 s \$0-serialIsOpen;
+#X obj 569 315 s \$0-serialConnect;
+#X obj 563 200 r \$0-serialIsOpen;
+#X msg 454 100 open \$1 \, baud 9600 \, pollintervall 1 \, verbose
+1 \, retries 0;
+#X obj 571 30 inlet;
+#X obj 571 51 f;
+#X obj 454 80 f;
+#X connect 2 0 22 0;
+#X connect 3 0 4 0;
+#X connect 3 1 31 0;
+#X connect 4 0 22 0;
+#X connect 5 0 15 0;
+#X connect 6 0 1 0;
+#X connect 6 0 23 0;
+#X connect 9 0 13 0;
+#X connect 10 0 11 0;
+#X connect 11 0 22 0;
+#X connect 12 0 25 0;
+#X connect 13 0 10 0;
+#X connect 14 0 8 0;
+#X connect 15 0 6 0;
+#X connect 17 0 2 0;
+#X connect 18 0 19 0;
+#X connect 19 0 20 0;
+#X connect 20 0 26 0;
+#X connect 22 0 5 0;
+#X connect 22 1 12 0;
+#X connect 24 0 3 0;
+#X connect 27 0 21 0;
+#X connect 28 0 22 0;
+#X connect 29 0 30 0;
+#X connect 30 0 31 1;
+#X connect 31 0 28 0;
+#X coords 0 -1 1 1 62 85 1 300 50;

+ 124 - 0
superpile.pd

@@ -0,0 +1,124 @@
+#N canvas 942 190 904 702 10;
+#X obj 479 274 print;
+#X obj 550 266 route /arduino;
+#X obj 550 287 unpack f f f;
+#X obj 553 316 vsl 15 128 0 518 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 597 318 vsl 15 128 0 3400 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 634 319 vsl 15 128 0 518 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#N canvas 1 55 450 300 clean 0;
+#X obj 41 25 inlet;
+#X obj 69 141 list-abs/last-x 10;
+#X obj 69 162 list-abs/list-mean;
+#X floatatom 69 183 5 0 0 0 - - -, f 5;
+#X obj 46 246 outlet;
+#X obj 41 46 moses 4;
+#X obj 73 76 moses 517;
+#X connect 0 0 5 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 0 4 0;
+#X connect 5 1 6 0;
+#X connect 6 0 1 0;
+#X restore 527 478 pd clean;
+#X msg 527 499 /dist1 \$1;
+#X obj 527 520 s toOSC;
+#X obj 693 570 r toOSC;
+#X obj 693 591 mrpeach/packOSC;
+#X obj 693 652 mrpeach/udpsend;
+#N canvas 1 55 450 300 clean 0;
+#X obj 41 25 inlet;
+#X obj 69 141 list-abs/last-x 10;
+#X obj 69 162 list-abs/list-mean;
+#X floatatom 69 183 5 0 0 0 - - -, f 5;
+#X obj 46 246 outlet;
+#X obj 41 46 moses 4;
+#X obj 73 76 moses 517;
+#X connect 0 0 5 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 0 4 0;
+#X connect 5 1 6 0;
+#X connect 6 0 1 0;
+#X restore 787 488 pd clean;
+#X msg 787 509 /dist1 \$1;
+#X obj 787 530 s toOSC;
+#N canvas 684 181 939 544 ARDUINO 0;
+#X obj 506 219 route /arduino;
+#X obj 506 240 unpack f f f;
+#X obj 509 269 vsl 15 128 0 518 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 553 271 vsl 15 128 0 3400 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 590 272 vsl 15 128 0 518 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#N canvas 1 55 450 300 clean 0;
+#X obj 41 25 inlet;
+#X obj 69 141 list-abs/last-x 10;
+#X obj 69 162 list-abs/list-mean;
+#X floatatom 69 183 5 0 0 0 - - -, f 5;
+#X obj 46 246 outlet;
+#X obj 41 46 moses 4;
+#X obj 73 76 moses 517;
+#X connect 0 0 5 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 0 4 0;
+#X connect 5 1 6 0;
+#X connect 6 0 1 0;
+#X restore 509 431 pd clean;
+#X msg 509 452 /dist1 \$1;
+#X obj 509 473 s toOSC;
+#X obj 54 88 OSCserial;
+#X msg 17 68 32;
+#X floatatom 54 69 5 0 0 0 - - -, f 5;
+#X msg 18 47 set \$1 \, bang;
+#X obj 134 -1 t b;
+#X msg 134 20 \; pd-ARDUINO menusave;
+#X obj 16 16 loadbang;
+#N canvas 1 55 450 300 once 0;
+#X obj 133 25 inlet;
+#X obj 133 46 spigot 1;
+#X obj 133 67 t a b;
+#X obj 133 108 outlet;
+#X msg 159 87 0;
+#X obj 230 22 inlet;
+#X msg 230 43 1;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 1 4 0;
+#X connect 4 0 1 1;
+#X connect 5 0 6 0;
+#X connect 6 0 1 1;
+#X restore 4 95 pd once;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X connect 1 1 3 0;
+#X connect 1 2 4 0;
+#X connect 2 0 5 0;
+#X connect 5 0 6 0;
+#X connect 6 0 7 0;
+#X connect 9 0 8 0;
+#X connect 9 0 15 0;
+#X connect 10 0 11 0;
+#X connect 10 0 12 0;
+#X connect 11 0 9 0;
+#X connect 12 0 13 0;
+#X connect 14 0 9 0;
+#X connect 15 0 10 0;
+#X coords 0 -1 1 1 600 300 1 50 50;
+#X restore 23 120 pd ARDUINO 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 1 4 0;
+#X connect 2 2 5 0;
+#X connect 3 0 6 0;
+#X connect 6 0 7 0;
+#X connect 7 0 8 0;
+#X connect 9 0 10 0;
+#X connect 10 0 11 0;
+#X connect 12 0 13 0;
+#X connect 13 0 14 0;