diff options
Diffstat (limited to 'arduino.pd')
-rw-r--r-- | arduino.pd | 539 |
1 files changed, 274 insertions, 265 deletions
@@ -1,265 +1,274 @@ -#N canvas 628 43 617 333 10; -#X obj 462 15 import flatspace; -#X text 415 287 released under the GNU GPL; -#X text 10 287 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at> -; -#X obj 11 21 inlet; -#X obj 11 196 outlet; -#X obj 494 241 outlet; -#N canvas 120 132 612 337 command 0; -#X obj 46 8 inlet; -#X obj 148 269 outlet; -#X obj 100 94 clip 0 6; -#X obj 171 94 clip 0 1; -#X obj 171 115 int; -#N canvas 0 22 470 320 digital-out 0; -#X obj 67 20 inlet; -#X obj 85 280 outlet; -#X obj 65 108 route float; -#X obj 221 191 & 127; -#X obj 140 208 & 127; -#X obj 140 164 trigger float float bang; -#X text 104 89 break up digital-out bitmask; -#X obj 140 186 >> 7; -#X msg 303 186 229; -#X connect 0 0 2 0; -#X connect 2 0 5 0; -#X connect 2 1 1 0; -#X connect 3 0 1 0; -#X connect 4 0 1 0; -#X connect 5 0 7 0; -#X connect 5 1 3 0; -#X connect 5 2 8 0; -#X connect 7 0 4 0; -#X connect 8 0 1 0; -#X restore 449 93 pd digital-out; -#N canvas 90 168 520 327 outputMode 0; -#X obj 60 11 inlet; -#X obj 175 275 outlet; -#X obj 175 87 unpack float float; -#X obj 175 176 +; -#X obj 175 197 + 130; -#X obj 296 126 * 70; -#X text 222 198 input commands = 130-143; -#X text 334 127 output commands = 200-213; -#X msg 61 229 151; -#X obj 60 48 trigger bang anything; -#X obj 61 182 float; -#X text 142 86 pin#; -#X text 312 87 mode; -#X text 89 229 send 151/ENABLE_DIGITAL_INPUT whenever a pin is set -to input; -#X obj 61 202 select 0; -#X connect 0 0 9 0; -#X connect 2 0 3 0; -#X connect 2 1 5 0; -#X connect 2 1 10 1; -#X connect 3 0 4 0; -#X connect 4 0 1 0; -#X connect 5 0 3 1; -#X connect 8 0 1 0; -#X connect 9 0 10 0; -#X connect 9 1 2 0; -#X connect 10 0 14 0; -#X connect 14 0 8 0; -#X restore 241 94 pd outputMode; -#X obj 100 135 + 160; -#X obj 171 137 + 150; -#N canvas 291 228 420 352 pwm 0; -#X obj 44 14 inlet; -#X msg 327 220 251; -#X obj 114 312 outlet; -#X obj 232 185 * 255; -#X obj 232 164 clip 0 1; -#X obj 232 205 int; -#N canvas 0 22 450 300 list-rev 0; -#X obj 92 29 inlet; -#N canvas 0 22 533 407 drip 0; -#X obj 64 206 list split 1; -#X obj 64 123 until; -#X obj 64 181 list append; -#X obj 194 206 bang; -#X obj 64 243 outlet; -#X obj 64 57 inlet; -#X text 237 44 From list-help.pd; -#X obj 143 243 outlet; -#X obj 64 86 t b a; -#X connect 0 0 4 0; -#X connect 0 1 2 1; -#X connect 0 2 3 0; -#X connect 0 2 7 0; -#X connect 1 0 2 0; -#X connect 2 0 0 0; -#X connect 3 0 1 1; -#X connect 5 0 8 0; -#X connect 8 0 1 0; -#X connect 8 1 2 1; -#X restore 92 94 pd drip; -#X obj 148 141 t l; -#X obj 92 141 list; -#X obj 136 207 list; -#X obj 136 259 outlet; -#X text 174 95 drip list; -#X text 174 210 intermediate store \, bang'd on list end.; -#X text 178 140 repack in reverse order; -#X obj 92 54 t a b b; -#X connect 0 0 9 0; -#X connect 1 0 3 0; -#X connect 1 1 4 0; -#X connect 2 0 3 1; -#X connect 3 0 2 0; -#X connect 3 0 4 1; -#X connect 4 0 5 0; -#X connect 9 0 1 0; -#X connect 9 1 3 1; -#X connect 9 2 4 1; -#X restore 44 54 pd list-rev; -#X obj 44 113 route off; -#X msg 74 170 250; -#X obj 44 83 list trim; -#X text 361 222 PWM on; -#X obj 44 145 t f b; -#X text 105 170 PWM off; -#X obj 232 141 unpack f f; -#X obj 297 195 t f b; -#X connect 0 0 6 0; -#X connect 1 0 2 0; -#X connect 3 0 5 0; -#X connect 4 0 3 0; -#X connect 5 0 2 0; -#X connect 6 0 9 0; -#X connect 7 0 11 0; -#X connect 7 1 13 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 11 0 2 0; -#X connect 11 1 8 0; -#X connect 13 0 4 0; -#X connect 13 1 14 0; -#X connect 14 0 2 0; -#X connect 14 1 1 0; -#X restore 30 94 pd pwm; -#X msg 340 94 info; -#X obj 46 52 route pwm analogIns digitalIns outputMode info version -; -#X msg 390 93 240; -#X connect 0 0 11 0; -#X connect 2 0 7 0; -#X connect 3 0 4 0; -#X connect 4 0 8 0; -#X connect 5 0 1 0; -#X connect 6 0 1 0; -#X connect 7 0 1 0; -#X connect 8 0 1 0; -#X connect 9 0 1 0; -#X connect 10 0 1 0; -#X connect 11 0 9 0; -#X connect 11 1 2 0; -#X connect 11 2 3 0; -#X connect 11 3 6 0; -#X connect 11 4 10 0; -#X connect 11 5 12 0; -#X connect 11 6 5 0; -#X connect 12 0 1 0; -#X restore 11 52 pd command processing; -#X text 257 242 DEBUG/RAW data (this will change); -#X obj 379 19 inlet; -#X text 354 0 raw input; -#X text 10 -1 processed input; -#X obj 11 96 comport \$1 19200; -#N canvas 182 25 380 443 make 0; -#X obj 147 8 inlet; -#X obj 71 334 outlet; -#X obj 147 37 moses 128; -#X obj 27 198 float; -#N canvas 382 81 506 356 alternate 0; -#X obj 34 280 outlet; -#X obj 209 277 outlet; -#X obj 34 210 spigot; -#X obj 209 204 spigot; -#X obj 33 87 trigger anything bang; -#X msg 175 107 1; -#X obj 71 186 float; -#X obj 245 181 float; -#X obj 357 41 loadbang; -#X obj 342 74 bang; -#X obj 246 158 !=; -#X obj 71 163 !=; -#X obj 342 7 inlet; -#X text 384 6 reset; -#X obj 33 12 inlet; -#X msg 329 102 1; -#X msg 359 102 0; -#X connect 2 0 0 0; -#X connect 3 0 1 0; -#X connect 4 0 2 0; -#X connect 4 0 3 0; -#X connect 4 1 5 0; -#X connect 5 0 10 0; -#X connect 5 0 11 0; -#X connect 6 0 2 1; -#X connect 6 0 11 1; -#X connect 7 0 3 1; -#X connect 7 0 10 1; -#X connect 8 0 9 0; -#X connect 9 0 16 0; -#X connect 9 0 15 0; -#X connect 10 0 7 0; -#X connect 11 0 6 0; -#X connect 12 0 9 0; -#X connect 14 0 4 0; -#X connect 15 0 11 1; -#X connect 16 0 10 1; -#X restore 147 130 pd alternate; -#X obj 27 173 trigger bang float; -#X obj 226 111 bang; -#N canvas 0 22 576 352 convert 0; -#X obj 98 22 inlet; -#X obj 163 314 outlet; -#X obj 365 204 print UNKNOWN_INPUT_COMMAND; -#X obj 98 68 select 151 240; -#X obj 191 89 moses 161; -#X obj 250 113 moses 167; -#X obj 188 195 makefilename analog%c; -#X obj 188 174 - 113; -#X msg 117 131 symbol version; -#X msg 8 131 symbol digital; -#X connect 0 0 3 0; -#X connect 3 0 9 0; -#X connect 3 1 8 0; -#X connect 3 2 4 0; -#X connect 4 0 2 0; -#X connect 4 1 5 0; -#X connect 5 0 7 0; -#X connect 5 1 2 0; -#X connect 6 0 1 0; -#X connect 7 0 6 0; -#X connect 8 0 1 0; -#X connect 9 0 1 0; -#X restore 27 219 pd convert commands; -#X obj 70 296 list trim; -#X obj 70 273 pack symbol float; -#X obj 184 219 +; -#X obj 200 197 * 128; -#X connect 0 0 2 0; -#X connect 2 0 4 0; -#X connect 2 1 3 1; -#X connect 2 1 6 0; -#X connect 3 0 7 0; -#X connect 4 0 5 0; -#X connect 4 1 11 0; -#X connect 5 0 3 0; -#X connect 5 1 10 0; -#X connect 6 0 4 1; -#X connect 7 0 9 0; -#X connect 8 0 1 0; -#X connect 9 0 8 0; -#X connect 10 0 9 1; -#X connect 11 0 10 1; -#X restore 10 165 pd make lists; -#X connect 3 0 6 0; -#X connect 6 0 11 0; -#X connect 8 0 11 0; -#X connect 11 0 5 0; -#X connect 11 0 12 0; -#X connect 12 0 4 0; +#N canvas 396 63 681 397 10;
+#X obj 462 15 import flatspace;
+#X text 415 287 released under the GNU GPL;
+#X text 10 287 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X obj 11 21 inlet;
+#X obj 11 196 outlet;
+#X obj 494 241 outlet;
+#N canvas 484 367 648 373 command 0;
+#X obj 46 8 inlet;
+#X obj 148 269 outlet;
+#X obj 100 94 clip 0 6;
+#X obj 171 94 clip 0 1;
+#X obj 171 115 int;
+#N canvas 614 548 486 336 digital-out 0;
+#X obj 65 20 inlet;
+#X obj 85 280 outlet;
+#X obj 65 108 route float;
+#X obj 209 209 & 127;
+#X obj 140 208 & 127;
+#X obj 140 164 trigger float float bang;
+#X text 104 89 break up digital-out bitmask;
+#X obj 209 187 >> 7;
+#X msg 279 188 229;
+#X connect 0 0 2 0;
+#X connect 2 0 5 0;
+#X connect 2 1 1 0;
+#X connect 3 0 1 0;
+#X connect 4 0 1 0;
+#X connect 5 0 4 0;
+#X connect 5 1 7 0;
+#X connect 5 2 8 0;
+#X connect 7 0 3 0;
+#X connect 8 0 1 0;
+#X restore 449 93 pd digital-out;
+#N canvas 49 547 528 335 outputMode 0;
+#X obj 60 11 inlet;
+#X obj 175 275 outlet;
+#X obj 175 87 unpack float float;
+#X obj 175 176 +;
+#X obj 175 197 + 130;
+#X obj 296 126 * 70;
+#X text 222 198 input commands = 130-143;
+#X text 334 127 output commands = 200-213;
+#X msg 61 229 151;
+#X obj 60 48 trigger bang anything;
+#X obj 61 182 float;
+#X text 142 86 pin#;
+#X text 312 87 mode;
+#X text 89 229 send 151/ENABLE_DIGITAL_INPUT whenever a pin is set
+to input;
+#X obj 61 202 select 0;
+#X connect 0 0 9 0;
+#X connect 2 0 3 0;
+#X connect 2 1 5 0;
+#X connect 2 1 10 1;
+#X connect 3 0 4 0;
+#X connect 4 0 1 0;
+#X connect 5 0 3 1;
+#X connect 8 0 1 0;
+#X connect 9 0 10 0;
+#X connect 9 1 2 0;
+#X connect 10 0 14 0;
+#X connect 14 0 8 0;
+#X restore 241 94 pd outputMode;
+#X obj 100 135 + 160;
+#X obj 171 137 + 150;
+#N canvas 291 228 420 352 pwm 0;
+#X obj 44 14 inlet;
+#X msg 327 220 251;
+#X obj 114 312 outlet;
+#X obj 232 185 * 255;
+#X obj 232 164 clip 0 1;
+#X obj 232 205 int;
+#N canvas 0 22 450 300 list-rev 0;
+#X obj 92 29 inlet;
+#N canvas 0 22 533 407 drip 0;
+#X obj 64 206 list split 1;
+#X obj 64 123 until;
+#X obj 64 181 list append;
+#X obj 194 206 bang;
+#X obj 64 243 outlet;
+#X obj 64 57 inlet;
+#X text 237 44 From list-help.pd;
+#X obj 143 243 outlet;
+#X obj 64 86 t b a;
+#X connect 0 0 4 0;
+#X connect 0 1 2 1;
+#X connect 0 2 3 0;
+#X connect 0 2 7 0;
+#X connect 1 0 2 0;
+#X connect 2 0 0 0;
+#X connect 3 0 1 1;
+#X connect 5 0 8 0;
+#X connect 8 0 1 0;
+#X connect 8 1 2 1;
+#X restore 92 94 pd drip;
+#X obj 148 141 t l;
+#X obj 92 141 list;
+#X obj 136 207 list;
+#X obj 136 259 outlet;
+#X text 174 95 drip list;
+#X text 174 210 intermediate store \, bang'd on list end.;
+#X text 178 140 repack in reverse order;
+#X obj 92 54 t a b b;
+#X connect 0 0 9 0;
+#X connect 1 0 3 0;
+#X connect 1 1 4 0;
+#X connect 2 0 3 1;
+#X connect 3 0 2 0;
+#X connect 3 0 4 1;
+#X connect 4 0 5 0;
+#X connect 9 0 1 0;
+#X connect 9 1 3 1;
+#X connect 9 2 4 1;
+#X restore 44 54 pd list-rev;
+#X obj 44 113 route off;
+#X msg 74 170 250;
+#X obj 44 83 list trim;
+#X text 361 222 PWM on;
+#X obj 44 145 t f b;
+#X text 105 170 PWM off;
+#X obj 232 141 unpack f f;
+#X obj 297 195 t f b;
+#X connect 0 0 6 0;
+#X connect 1 0 2 0;
+#X connect 3 0 5 0;
+#X connect 4 0 3 0;
+#X connect 5 0 2 0;
+#X connect 6 0 9 0;
+#X connect 7 0 11 0;
+#X connect 7 1 13 0;
+#X connect 8 0 2 0;
+#X connect 9 0 7 0;
+#X connect 11 0 2 0;
+#X connect 11 1 8 0;
+#X connect 13 0 4 0;
+#X connect 13 1 14 0;
+#X connect 14 0 2 0;
+#X connect 14 1 1 0;
+#X restore 30 94 pd pwm;
+#X msg 340 94 info;
+#X obj 46 52 route pwm analogIns digitalIns outputMode info version
+;
+#X msg 390 93 240;
+#X connect 0 0 11 0;
+#X connect 2 0 7 0;
+#X connect 3 0 4 0;
+#X connect 4 0 8 0;
+#X connect 5 0 1 0;
+#X connect 6 0 1 0;
+#X connect 7 0 1 0;
+#X connect 8 0 1 0;
+#X connect 9 0 1 0;
+#X connect 10 0 1 0;
+#X connect 11 0 9 0;
+#X connect 11 1 2 0;
+#X connect 11 2 3 0;
+#X connect 11 3 6 0;
+#X connect 11 4 10 0;
+#X connect 11 5 12 0;
+#X connect 11 6 5 0;
+#X connect 12 0 1 0;
+#X restore 11 52 pd command processing;
+#X text 257 242 DEBUG/RAW data (this will change);
+#X obj 379 19 inlet;
+#X text 354 0 raw input;
+#X text 10 -1 processed input;
+#N canvas 182 25 384 447 make 0;
+#X obj 147 8 inlet;
+#X obj 71 334 outlet;
+#X obj 147 37 moses 128;
+#X obj 27 198 float;
+#N canvas 382 81 506 356 alternate 0;
+#X obj 34 280 outlet;
+#X obj 209 277 outlet;
+#X obj 34 210 spigot;
+#X obj 209 204 spigot;
+#X obj 33 87 trigger anything bang;
+#X msg 175 107 1;
+#X obj 71 186 float;
+#X obj 245 181 float;
+#X obj 357 41 loadbang;
+#X obj 342 74 bang;
+#X obj 246 158 !=;
+#X obj 71 163 !=;
+#X obj 342 7 inlet;
+#X text 384 6 reset;
+#X obj 33 12 inlet;
+#X msg 329 102 1;
+#X msg 359 102 0;
+#X connect 2 0 0 0;
+#X connect 3 0 1 0;
+#X connect 4 0 2 0;
+#X connect 4 0 3 0;
+#X connect 4 1 5 0;
+#X connect 5 0 10 0;
+#X connect 5 0 11 0;
+#X connect 6 0 2 1;
+#X connect 6 0 11 1;
+#X connect 7 0 3 1;
+#X connect 7 0 10 1;
+#X connect 8 0 9 0;
+#X connect 9 0 16 0;
+#X connect 9 0 15 0;
+#X connect 10 0 7 0;
+#X connect 11 0 6 0;
+#X connect 12 0 9 0;
+#X connect 14 0 4 0;
+#X connect 15 0 11 1;
+#X connect 16 0 10 1;
+#X restore 147 130 pd alternate;
+#X obj 27 173 trigger bang float;
+#X obj 226 111 bang;
+#N canvas 0 22 580 356 convert 0;
+#X obj 98 22 inlet;
+#X obj 163 314 outlet;
+#X obj 365 204 print UNKNOWN_INPUT_COMMAND;
+#X obj 98 68 select 151 240;
+#X obj 191 89 moses 161;
+#X obj 250 113 moses 167;
+#X obj 188 195 makefilename analog%c;
+#X obj 188 174 - 113;
+#X msg 117 131 symbol version;
+#X msg 8 131 symbol digital;
+#X connect 0 0 3 0;
+#X connect 3 0 9 0;
+#X connect 3 1 8 0;
+#X connect 3 2 4 0;
+#X connect 4 0 2 0;
+#X connect 4 1 5 0;
+#X connect 5 0 7 0;
+#X connect 5 1 2 0;
+#X connect 6 0 1 0;
+#X connect 7 0 6 0;
+#X connect 8 0 1 0;
+#X connect 9 0 1 0;
+#X restore 27 219 pd convert commands;
+#X obj 70 296 list trim;
+#X obj 70 273 pack symbol float;
+#X obj 184 219 +;
+#X obj 200 197 * 128;
+#X connect 0 0 2 0;
+#X connect 2 0 4 0;
+#X connect 2 1 3 1;
+#X connect 2 1 6 0;
+#X connect 3 0 7 0;
+#X connect 4 0 5 0;
+#X connect 4 1 11 0;
+#X connect 5 0 3 0;
+#X connect 5 1 10 0;
+#X connect 6 0 4 1;
+#X connect 7 0 9 0;
+#X connect 8 0 1 0;
+#X connect 9 0 8 0;
+#X connect 10 0 9 1;
+#X connect 11 0 10 1;
+#X restore 10 165 pd make lists;
+#X obj 190 89 spigot;
+#X obj 221 67 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 102 117 print comport;
+#X obj 11 96 comport \$1 19200;
+#X obj 190 112 print command;
+#X connect 3 0 6 0;
+#X connect 6 0 12 0;
+#X connect 6 0 15 0;
+#X connect 8 0 15 0;
+#X connect 11 0 4 0;
+#X connect 12 0 16 0;
+#X connect 13 0 12 1;
+#X connect 15 0 5 0;
+#X connect 15 0 11 0;
+#X connect 15 1 14 0;
|