Announcements

November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!


project 9 train / toy

Project Members: 
Wenhua Shi

 i try to find someone working together. but it seems everyone already has a group.
so i play it with my 2 year old son. he loves the train toys. i think i can do some train sound ,while he plays train tracks.


i only do this project in maxmsp. a rough list of objects

#P window setfont "Sans Serif" 9.;

#P window linecount 1;

#P comment 600 108 43 196617 antana;

#P button 649 331 15 0;

#P comment 581 318 100 196617 black;

#P button 580 333 15 0;

#P button 515 335 15 0;

#N vpatcher 47 59 647 459;

#P window setfont "Sans Serif" 9.;

#P message 180 169 30 196617 read;

#P message 120 87 75 196617 setOutput 0 \$1;

#P message 157 129 64 196617 setLEDOn \$1;

#P message 176 149 86 196617 setAntennaOn \$1;

#P message 139 108 75 196617 setOutput 1 \$1;

#P message 59 69 52 196617 getStatus;

#P message 68 88 50 196617 getSerial;

#P message 50 50 55 196617 getVersion;

#P comment 215 89 100 196617 5v Source;

#P comment 222 108 100 196617 External LED;

#P comment 240 129 86 196617 Internal LED;

#P comment 266 148 67 196617 Antenna;

#P inlet 176 129 15 0;

#P inlet 157 109 15 0;

#P inlet 139 88 15 0;

#P inlet 120 67 15 0;

#P outlet 68 108 15 0;

#P outlet 59 89 15 0;

#P outlet 50 70 15 0;

#P outlet 120 107 15 0;

#P outlet 139 128 15 0;

#P outlet 157 149 15 0;

#P outlet 176 169 15 0;

#P outlet 180 189 15 0;

#P connect 16 0 5 0;

#P connect 18 0 6 0;

#P connect 17 0 7 0;

#P connect 8 0 22 0;

#P connect 22 0 4 0;

#P connect 9 0 19 0;

#P connect 19 0 3 0;

#P connect 10 0 21 0;

#P connect 21 0 2 0;

#P connect 11 0 20 0;

#P connect 20 0 1 0;

#P connect 23 0 0 0;

#P pop;

#P newobj 3 142 105 196617 p loadphidget;

#N vpatcher 350 173 1020 717;

#P window setfont "Sans Serif" 9.;

#P number 531 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222
0 0 0;

#P number 491 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222
0 0 0;

#P message 531 85 26 196617 130;

#P message 494 87 26 196617 127;

#P user gain~ 576 365 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 546 366 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 535 321 52 196617 sfplay~ 2;

#B color 5;

#P user gain~ 463 370 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 435 371 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 446 327 52 196617 sfplay~ 2;

#B color 5;

#P user gain~ 367 366 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 341 366 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 352 323 52 196617 sfplay~ 2;

#B color 5;

#P user gain~ 270 362 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 239 362 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 254 319 52 196617 sfplay~ 2;

#B color 5;

#P user gain~ 165 367 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 135 369 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 149 320 52 196617 sfplay~ 2;

#B color 5;

#P user gain~ 83 369 24 100 158 0 1.071519 7.94321 0.;

#P user gain~ 55 368 24 100 158 0 1.071519 7.94321 0.;

#N sfplay~  2
40320 0 ;

#P newobj 50 322 52 196617 sfplay~ 2;

#B color 5;

#P button 519 50 15 0;

#P inlet 519 30 15 0;

#P inlet 577 301 15 0;

#P inlet 535 301 15 0;

#P inlet 488 307 15 0;

#P inlet 446 307 15 0;

#P inlet 394 303 15 0;

#P inlet 352 303 15 0;

#P inlet 296 299 15 0;

#P inlet 254 299 15 0;

#P inlet 191 300 15 0;

#P inlet 149 300 15 0;

#P inlet 50 302 15 0;

#P outlet 83 496 15 0;

#P outlet 463 497 15 0;

#P outlet 367 493 15 0;

#P outlet 270 489 15 0;

#P outlet 576 492 15 0;

#P outlet 165 494 15 0;

#P outlet 577 343 15 0;

#P outlet 488 349 15 0;

#P outlet 394 345 15 0;

#P outlet 296 341 15 0;

#P outlet 191 342 15 0;

#P outlet 92 344 15 0;

#P outlet 135 496 15 0;

#P outlet 55 495 15 0;

#P outlet 239 489 15 0;

#P outlet 341 493 15 0;

#P outlet 435 498 15 0;

#P outlet 546 493 15 0;

#P connect 18 0 31 0;

#P connect 51 0 32 0;

#P connect 31 0 32 0;

#P connect 32 0 4 0;

#P connect 51 0 33 0;

#P connect 33 0 17 0;

#P connect 31 2 6 0;

#P connect 52 0 35 0;

#P connect 34 0 35 0;

#P connect 35 0 5 0;

#P connect 19 0 34 0;

#P connect 52 0 36 0;

#P connect 34 1 36 0;

#P connect 36 0 12 0;

#P connect 20 0 34 1;

#P connect 34 2 7 0;

#P connect 52 0 38 0;

#P connect 37 0 38 0;

#P connect 38 0 3 0;

#P connect 21 0 37 0;

#P fasten 52 0 39 0 275 361;

#P connect 37 1 39 0;

#P connect 39 0 14 0;

#P connect 22 0 37 1;

#P connect 37 2 8 0;

#P connect 52 0 41 0;

#P connect 40 0 41 0;

#P connect 41 0 2 0;

#P connect 23 0 40 0;

#P connect 52 0 42 0;

#P connect 40 1 42 0;

#P connect 42 0 15 0;

#P connect 24 0 40 1;

#P connect 40 2 9 0;

#P connect 52 0 44 0;

#P connect 43 0 44 0;

#P connect 44 0 1 0;

#P connect 25 0 43 0;

#P connect 52 0 45 0;

#P connect 43 1 45 0;

#P connect 45 0 16 0;

#P connect 26 0 43 1;

#P connect 43 2 10 0;

#P connect 49 0 51 0;

#P connect 30 0 49 0;

#P connect 29 0 30 0;

#P connect 30 0 50 0;

#P connect 50 0 52 0;

#P connect 27 0 46 0;

#P connect 52 0 47 0;

#P connect 46 0 47 0;

#P connect 47 0 0 0;

#P connect 46 1 48 0;

#P connect 52 0 48 0;

#P connect 48 0 13 0;

#P connect 28 0 46 1;

#P connect 46 2 11 0;

#P pop;

#P newobj 269 632 467 196617 p sfplay+vol control;

#P comment 0 250 100 196617 serial number \, etc;

#P comment 192 87 71 196617 • start reader;

#P message 760 69 26 196617 stop;

#P window setfont "Sans Serif" 24.;

#P message 654 52 63 196632 start;

#P window setfont "Sans Serif" 9.;

#P newex 2 22 48 196617 loadbang;

#P message 681 409 76 196617 open train5.aif;

#N vpatcher 281 114 881 514;

#P window setfont "Sans Serif" 9.;

#P window linecount 0;

#P newex 137 228 55 196617 delay 500;

#P outlet 289 277 15 0;

#P newex 253 61 61 196617 delay 1000;

#P button 165 111 15 0;

#P newex 166 151 45 196617 onebang;

#P message 136 256 14 196617 1;

#P button 204 110 17 0;

#P button 165 177 15 0;

#P comment 57 116 100 196617 reader reading bang;

#P window linecount 4;

#P comment 255 92 100 196617 when sample player finished its
task \, delay 1 sec then bang for reset;

#P window linecount 3;

#P comment 158 251 100 196617 out put only one time bang \,
1 start sample file;

#P inlet 204 90 15 0;

#P inlet 165 91 15 0;

#P inlet 252 38 15 0;

#P outlet 136 276 15 0;

#P window linecount 1;

#P comment 312 280 100 196617 load soundfile;

#P connect 15 0 10 0;

#P connect 10 0 1 0;

#P connect 8 0 15 0;

#P connect 3 0 12 0;

#P connect 11 0 8 0;

#P connect 12 0 11 0;

#P connect 9 0 11 1;

#P connect 4 0 9 0;

#P connect 13 0 9 0;

#P connect 2 0 13 0;

#P connect 11 0 14 0;

#P pop;

#P newobj 679 388 53 196617 p onebang;

#P button 384 335 15 0;

#P message 583 464 76 196617 open train4.aif;

#N vpatcher 281 114 881 514;

#P window setfont "Sans Serif" 9.;

#P window linecount 0;

#P newex 137 228 55 196617 delay 500;

#P outlet 289 277 15 0;

#P newex 253 61 61 196617 delay 1000;

#P button 165 111 15 0;

#P newex 166 151 45 196617 onebang;

#P message 136 256 14 196617 1;

#P button 204 110 17 0;

#P button 165 177 15 0;

#P comment 57 116 100 196617 reader reading bang;

#P window linecount 4;

#P comment 255 92 100 196617 when sample player finished its
task \, delay 1 sec then bang for reset;

#P window linecount 3;

#P comment 158 251 100 196617 out put only one time bang \,
1 start sample file;

#P inlet 204 90 15 0;

#P inlet 165 91 15 0;

#P inlet 252 38 15 0;

#P outlet 136 276 15 0;

#P window linecount 1;

#P comment 312 280 100 196617 load soundfile;

#P connect 15 0 10 0;

#P connect 10 0 1 0;

#P connect 8 0 15 0;

#P connect 3 0 12 0;

#P connect 11 0 8 0;

#P connect 12 0 11 0;

#P connect 9 0 11 1;

#P connect 4 0 9 0;

#P connect 13 0 9 0;

#P connect 2 0 13 0;

#P connect 11 0 14 0;

#P pop;

#P newobj 581 422 53 196617 p onebang;

#P button 317 335 15 0;

#P message 453 462 76 196617 open train3.aif;

#N vpatcher 281 114 881 514;

#P window setfont "Sans Serif" 9.;

#P window linecount 0;

#P newex 137 228 55 196617 delay 500;

#P outlet 289 277 15 0;

#P newex 253 61 61 196617 delay 1000;

#P button 165 111 15 0;

#P newex 166 151 45 196617 onebang;

#P message 136 256 14 196617 1;

#P button 204 110 17 0;

#P button 165 177 15 0;

#P comment 57 116 100 196617 reader reading bang;

#P window linecount 4;

#P comment 255 92 100 196617 when sample player finished its
task \, delay 1 sec then bang for reset;

#P window linecount 3;

#P comment 158 251 100 196617 out put only one time bang \,
1 start sample file;

#P inlet 204 90 15 0;

#P inlet 165 91 15 0;

#P inlet 252 38 15 0;

#P outlet 136 276 15 0;

#P window linecount 1;

#P comment 312 280 100 196617 load soundfile;

#P connect 15 0 10 0;

#P connect 10 0 1 0;

#P connect 8 0 15 0;

#P connect 3 0 12 0;

#P connect 11 0 8 0;

#P connect 12 0 11 0;

#P connect 9 0 11 1;

#P connect 13 0 9 0;

#P connect 4 0 9 0;

#P connect 2 0 13 0;

#P connect 11 0 14 0;

#P pop;

#P newobj 451 441 53 196617 p onebang;

#P message 320 489 76 196617 open train2.aif;

#N vpatcher 281 114 881 514;

#P window setfont "Sans Serif" 9.;

#P window linecount 0;

#P newex 137 228 55 196617 delay 500;

#P outlet 289 277 15 0;

#P newex 253 61 61 196617 delay 1000;

#P button 165 111 15 0;

#P newex 166 151 45 196617 onebang;

#P message 136 256 14 196617 1;

#P button 204 110 17 0;

#P button 165 177 15 0;

#P comment 57 116 100 196617 reader reading bang;

#P window linecount 4;

#P comment 255 92 100 196617 when sample player finished its
task \, delay 1 sec then bang for reset;

#P window linecount 3;

#P comment 158 251 100 196617 out put only one time bang \,
1 start sample file;

#P inlet 204 90 15 0;

#P inlet 165 91 15 0;

#P inlet 252 38 15 0;

#P outlet 136 276 15 0;

#P window linecount 1;

#P comment 312 280 100 196617 load soundfile;

#P connect 15 0 10 0;

#P connect 10 0 1 0;

#P connect 8 0 15 0;

#P connect 3 0 12 0;

#P connect 11 0 8 0;

#P connect 12 0 11 0;

#P connect 9 0 11 1;

#P connect 4 0 9 0;

#P connect 13 0 9 0;

#P connect 2 0 13 0;

#P connect 11 0 14 0;

#P pop;

#P newobj 318 449 53 196617 p onebang;

#P button 180 364 15 0;

#P button 449 334 15 0;

#P message 225 479 76 196617 open train1.aif;

#N vpatcher 347 61 947 461;

#P window setfont "Sans Serif" 9.;

#P window linecount 0;

#P newex 137 228 55 196617 delay 500;

#P outlet 289 277 15 0;

#P newex 253 61 61 196617 delay 1000;

#P button 165 111 15 0;

#P newex 166 151 45 196617 onebang;

#P message 136 256 14 196617 1;

#P button 204 110 17 0;

#P button 165 177 15 0;

#P comment 57 116 100 196617 reader reading bang;

#P window linecount 4;

#P comment 255 92 100 196617 when sample player finished its
task \, delay 1 sec then bang for reset;

#P window linecount 3;

#P comment 158 251 100 196617 out put only one time bang \,
1 start sample file;

#P inlet 204 90 15 0;

#P inlet 165 91 15 0;

#P inlet 252 38 15 0;

#P outlet 136 276 15 0;

#P window linecount 1;

#P comment 312 280 100 196617 load soundfile;

#P connect 15 0 10 0;

#P connect 10 0 1 0;

#P connect 8 0 15 0;

#P connect 3 0 12 0;

#P connect 11 0 8 0;

#P connect 12 0 11 0;

#P connect 9 0 11 1;

#P connect 13 0 9 0;

#P connect 4 0 9 0;

#P connect 2 0 13 0;

#P connect 11 0 14 0;

#P pop;

#P newobj 224 456 53 196617 p onebang;

#P message 752 124 27 196617 stop;

#P window setfont "Sans Serif" 20.;

#P message 654 91 126 196628 startwindow;

#P window setfont "Sans Serif" 9.;

#P newex 268 664 470 196617 dac~ 1 2;

#P message 8 426 76 196617 open train1.aif;

#P comment 76 775 221 196617 play current file from
beginning to end;

#P comment 126 157 69 196617 • start audio;

#P user panel 648 43 148 109;

#X brgb 255 255 255;

#X frgb 100 202 30;

#X border 2;

#X rounded 0;

#X shadow 0;

#X done;

#P button 250 334 15 0;

#P button 110 362 15 0;

#P newex 38 263 623 196617 sel 0103951dc9 3000325bd3
30000d009b 0104c386d5 0f00aeee0b 1294713834 1000325bd3 1000253462 10000d009b;

#P button 271 139 43 0;

#P window linecount 4;

#P comment 314 180 100 196617 Read once using read \, or at
a set rate with start/stop and setSampleRate;

#P window linecount 1;

#P newex 3 189 48 196617 route int;

#P number 3 231 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0
0 0;

#P newex 64 205 60 196617 prepend set;

#P newex 4 165 96 196617 PhidgetRFID 37679;

#P message 64 229 102 196617 1000325bd3;

#P newex 3 46 489 196617 b 20;

#P window linecount 3;

#P comment 314 141 100 196617 if flash every second \, that
means reader working.;

#P button 38 362 15 0;

#P window linecount 1;

#P message 272 78 26 196617 500;

#P number 272 98 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222
0 0 0;

#P message 272 119 90 196617 setSampleRate \$1;

#P comment 311 80 36 196617 in ms;

#P toggle 597 59 46 0;

#P toggle 552 62 42 0;

#P toggle 5 118 15 0;

#P toggle 4 95 15 0;

#P comment 483 299 57 196617 paper;

#P comment 440 317 100 196617 coin;

#P comment 254 287 33 196617 clear;

#P comment 312 288 54 196617 not close;

#P newex 25 565 55 196617 delay 500;

#P newex 53 450 61 196617 delay 1000;

#P newex 26 520 45 196617 onebang;

#P message 25 589 14 196617 1;

#P button 63 488 17 0;

#P button 26 545 15 0;

#P comment 8 405 100 196617 reader reading bang;

#P comment 554 110 25 196617 led;

#P connect 27 1 30 0;

#P connect 27 1 25 0;

#P connect 59 4 37 1;

#P connect 59 16 37 1;

#P connect 59 7 37 1;

#P connect 59 10 37 1;

#P connect 59 13 37 1;

#P connect 59 1 37 1;

#P connect 53 0 59 11;

#P connect 52 0 59 10;

#P connect 22 14 38 0;

#P connect 22 7 55 0;

#P connect 30 9 64 0;

#P connect 22 13 59 9;

#P connect 50 0 59 8;

#P connect 30 8 62 0;

#P connect 49 0 59 7;

#P connect 47 0 59 6;

#P connect 30 7 61 0;

#P connect 46 0 59 5;

#P connect 59 17 52 2;

#P connect 22 1 52 1;

#P connect 30 6 42 0;

#P connect 52 1 53 0;

#P connect 45 0 59 4;

#P connect 51 0 52 0;

#P connect 64 0 52 0;

#P connect 59 14 49 2;

#P connect 44 0 59 3;

#P connect 22 5 49 1;

#P connect 30 5 51 0;

#P connect 49 1 50 0;

#P connect 48 0 49 0;

#P connect 41 0 59 2;

#P connect 59 11 46 2;

#P connect 22 4 46 1;

#P connect 30 4 48 0;

#P connect 40 0 59 1;

#P connect 46 1 47 0;

#P connect 32 0 46 0;

#P connect 59 8 44 2;

#P connect 18 0 17 0;

#P connect 19 0 18 0;

#P connect 22 8 19 0;

#P connect 25 0 23 0;

#P connect 25 0 29 0;

#P connect 4 0 59 0;

#P connect 36 0 59 0;

#P hidden connect 39 0 37 0;

#P hidden connect 38 0 37 0;

#P connect 59 15 37 0;

#P connect 59 12 37 0;

#P connect 59 9 37 0;

#P connect 59 6 37 0;

#P connect 59 0 37 0;

#P connect 59 3 37 0;

#P connect 22 3 44 1;

#P connect 30 3 32 0;

#P connect 44 1 45 0;

#P connect 43 0 44 0;

#P connect 59 5 40 2;

#P connect 42 0 43 0;

#P connect 22 2 40 1;

#P connect 40 1 41 0;

#P connect 31 0 40 0;

#P connect 30 1 31 0;

#P connect 15 0 60 3;

#P connect 14 0 60 2;

#P connect 22 0 3 0;

#P connect 6 0 3 0;

#P connect 3 0 5 1;

#P connect 59 2 6 0;

#P connect 62 0 20 0;

#P connect 30 0 20 0;

#P connect 13 0 60 1;

#P connect 5 0 36 0;

#P connect 5 0 2 0;

#P connect 20 0 5 0;

#P connect 7 0 4 0;

#P connect 2 0 7 0;

#P connect 60 2 24 0;

#P connect 60 1 24 0;

#P connect 60 0 24 0;

#P connect 60 3 24 0;

#P connect 60 4 24 0;

#P connect 60 5 24 0;

#P connect 60 6 24 0;

#P connect 60 7 24 0;

#P connect 17 0 24 0;

#P connect 56 0 24 0;

#P connect 55 0 24 0;

#P connect 27 0 26 0;

#P connect 24 0 27 0;

#P connect 12 0 60 0;

#P connect 54 0 22 0;

#P window clipboard copycount 66;

 some tests footage http://www.shiwenhua.net/P1040310.MOV 


AttachmentSize
P1040309.JPG59.31 KB

Powered by Drupal - Design by Artinet