Update of /cvsroot/pure-data/externals/ann/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9472
Modified Files: tutorial-ann_mlp.pd Log Message: fixed mouse/a key
Index: tutorial-ann_mlp.pd =================================================================== RCS file: /cvsroot/pure-data/externals/ann/examples/tutorial-ann_mlp.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tutorial-ann_mlp.pd 22 Oct 2005 11:31:18 -0000 1.1 --- tutorial-ann_mlp.pd 24 Oct 2005 10:46:21 -0000 1.2 *************** *** 1,8 **** ! #N canvas 297 73 593 517 12; #X obj 65 379 ann_mlp; #X text 39 59 input: mouse coord; #X text 37 76 output: 1 if mouse is in the upper left part of the screen ; ! #N canvas 106 171 568 438 step1-creation 0; #X text 141 13 let's create the ANN; #X obj 130 354 outlet; --- 1,8 ---- ! #N canvas 297 73 597 521 12; #X obj 65 379 ann_mlp; #X text 39 59 input: mouse coord; #X text 37 76 output: 1 if mouse is in the upper left part of the screen ; ! #N canvas 106 171 572 442 step1-creation 0; #X text 141 13 let's create the ANN; #X obj 130 354 outlet; *************** *** 14,23 **** #X connect 2 0 1 0; #X restore 128 158 pd step1-creation; ! #N canvas 46 38 644 604 step2-train 0; #X obj 97 530 outlet; #X msg 44 130 train; #X text 102 129 first switch to train mode; #X obj 139 367 pack s f f f; ! #N canvas 0 0 462 312 normalized-inputs 0; #X obj 105 64 r X; #X obj 173 67 r Y; --- 14,23 ---- #X connect 2 0 1 0; #X restore 128 158 pd step1-creation; ! #N canvas 46 38 652 612 step2-train 0; #X obj 97 530 outlet; #X msg 44 130 train; #X text 102 129 first switch to train mode; #X obj 139 367 pack s f f f; ! #N canvas 0 0 466 316 normalized-inputs 0; #X obj 105 64 r X; #X obj 173 67 r Y; *************** *** 37,41 **** #X connect 5 0 8 0; #X restore 127 271 pd normalized-inputs; ! #N canvas 0 0 667 316 desired-output 0; #X obj 383 63 key; #X obj 383 92 select 97; --- 37,41 ---- #X connect 5 0 8 0; #X restore 127 271 pd normalized-inputs; ! #N canvas 0 0 675 324 desired-output 0; #X obj 383 63 key; #X obj 383 92 select 97; *************** *** 45,50 **** #X msg 527 123 0; #X obj 183 195 outlet; ! #X text 40 21 i send 1 when "a" is pressed , 0 when released; #X obj 180 108 r out; #X connect 0 0 1 0; #X connect 1 0 2 0; --- 45,52 ---- #X msg 527 123 0; #X obj 183 195 outlet; ! #X text 90 269 i send 1 when "a" is pressed , 0 when released; #X obj 180 108 r out; + #X text 81 231 optionally , you can use the "a" key instead of the + mouse button; #X connect 0 0 1 0; #X connect 1 0 2 0; *************** *** 114,118 **** #X obj 281 389 loadbang; #X floatatom 116 414 5 0 0 0 mse - mse; ! #N canvas 618 -3 682 470 step3-run 0; #X obj 64 377 outlet; #N canvas 0 0 466 316 normalized-inputs 0; --- 116,120 ---- #X obj 281 389 loadbang; #X floatatom 116 414 5 0 0 0 mse - mse; ! #N canvas 618 0 682 470 step3-run 0; #X obj 64 377 outlet; #N canvas 0 0 466 316 normalized-inputs 0; *************** *** 134,138 **** #X connect 5 0 8 0; #X restore 178 167 pd normalized-inputs; ! #X obj 97 92 tgl 15 0 empty empty run 0 -6 0 8 -258699 -1 -1 1 1; #X obj 145 267 pack s f f; #X msg 50 30 run; --- 136,140 ---- #X connect 5 0 8 0; #X restore 178 167 pd normalized-inputs; ! #X obj 97 92 tgl 15 0 empty empty run 0 -6 0 8 -258699 -1 -1 0 1; #X obj 145 267 pack s f f; #X msg 50 30 run;