simon-game.pd 2.31 KB
Newer Older
1 2
#N struct simon float x float y float nc float ec float sc float wc
;
Jonathan Wilkes's avatar
Jonathan Wilkes committed
3
#N canvas 128 57 678 546 10;
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#X obj 341 212 r simon-click;
#X obj 116 18 struct simon float x float y float nc float ec float
sc float wc;
#X scalar simon 53 128 0 0 0 0 \;;
#N canvas 433 184 583 300 (subpatch) 0;
#X obj 124 42 loadbang;
#X obj 218 123 list prepend n;
#X obj 218 190 list prepend e;
#X obj 218 257 list prepend s;
#X obj 218 324 list prepend w;
#X obj 218 211 s simon-click;
#X obj 218 278 s simon-click;
#X obj 218 345 s simon-click;
#X obj 218 144 s simon-click;
#X msg 124 67 transform scale 0.4 \, rx 10 \, ry 10 \, mousedown 1
\, stroke gray \, stroke-width 4;
#X msg 422 110 fill nc 20 170;
#X msg 422 150 fill ec 20 170;
#X msg 422 190 fill sc 20 170;
#X msg 422 240 fill wc 20 170;
#X obj 505 60 loadbang;
Jonathan Wilkes's avatar
Jonathan Wilkes committed
25 26 27 28 29 30 31
#X obj 218 102 draw rect 100 50 50 0;
#X obj 218 169 draw rect 50 100 150 50;
#X obj 218 236 draw rect 100 50 50 150;
#X obj 218 303 draw rect 50 100 0 50;
#X connect 0 0 9 0;
#X connect 1 0 8 0;
#X connect 2 0 5 0;
32 33
#X connect 3 0 6 0;
#X connect 4 0 7 0;
Jonathan Wilkes's avatar
Jonathan Wilkes committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#X connect 9 0 15 0;
#X connect 9 0 16 0;
#X connect 9 0 17 0;
#X connect 9 0 18 0;
#X connect 10 0 15 0;
#X connect 11 0 16 0;
#X connect 12 0 17 0;
#X connect 13 0 18 0;
#X connect 14 0 10 0;
#X connect 14 0 13 0;
#X connect 14 0 12 0;
#X connect 14 0 11 0;
#X connect 15 0 1 0;
#X connect 16 0 2 0;
#X connect 17 0 3 0;
#X connect 18 0 4 0;
50
#X restore 375 166 draw g;
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
#X obj 341 233 t b a;
#X obj 375 461 set simon nc;
#X obj 341 425 * 255;
#N canvas 864 127 450 300 pipe-message 0;
#X msg 110 46 1 0 \, 0.9 50 \, 0.8 100 \, 0.7 150 \, 0.6 200 \, 0.5
250 \, 0.4 300 \, 0.3 350 \, 0.2 400 \, 0.1 450 \, 0 500;
#X obj 110 11 inlet;
#X obj 110 80 outlet;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X restore 341 268 pd pipe-message;
#X obj 341 289 unpack;
#X msg 375 403 set simon \$1c;
#X obj 448 268 unpack s s p;
#X obj 417 347 * 3;
#X obj 341 374 pipe f s p 0;
#X obj 341 347 pack f s p;
#X scalar simon 162 119 0 0 0 0 \;;
#X scalar simon 109 223 0 0 0 0 \;;
#X scalar simon 218 214 0 0 0 0 \;;
#X connect 0 0 4 0;
#X connect 4 0 7 0;
#X connect 4 1 10 0;
#X connect 6 0 5 0;
#X connect 7 0 8 0;
#X connect 8 0 13 0;
#X connect 8 1 11 0;
#X connect 9 0 5 0;
#X connect 10 0 13 1;
#X connect 10 2 13 2;
#X connect 11 0 12 3;
#X connect 12 0 6 0;
#X connect 12 1 9 0;
#X connect 12 2 5 1;
#X connect 13 0 12 0;