Update of /cvsroot/pure-data/doc/tutorials/intro In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv899
Modified Files: 22.selectors.pd Log Message: clarified definition and split out the implied selector description to its own page
Index: 22.selectors.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/22.selectors.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 22.selectors.pd 17 Aug 2007 00:14:26 -0000 1.1 --- 22.selectors.pd 17 Aug 2007 12:20:20 -0000 1.2 *************** *** 1,4 **** ! #N canvas 10 40 620 460 12; ! #X obj 8 -33 cnv 15 400 40 empty empty selectors 20 12 0 24 -228992 -66577 0; #N canvas 10 40 620 460 object 0; --- 1,8 ---- ! #N canvas 10 40 628 468 12; ! #X obj 311 314 cnv 15 300 60 empty empty not_selectors 5 12 0 14 -261234 ! -66577 0; ! #X obj 6 314 cnv 15 300 60 empty empty possible_selectors 5 12 0 14 ! -204786 -66577 0; ! #X obj 8 -29 cnv 15 400 40 empty empty selectors 20 12 0 24 -228992 -66577 0; #N canvas 10 40 620 460 object 0; *************** *** 10,31 **** #X connect 3 0 1 0; #X connect 3 1 2 0; ! #X restore 51 224 pd object; ! #X floatatom 51 277 5 0 0 0 - - -; ! #X floatatom 136 277 5 0 0 0 - - -; ! #X msg 83 178 output-right 309; ! #X msg 50 128 output-left 8675; ! #X text 9 24 Every message has a selector. The selector is the first element in the message. It tells the object which receives that message what to do with it. A selector is basically like a command or a function. ; ! #X text 22 319 Here's the technical definition:; ! #X text 220 129 <-- "output-left" is the selector; ! #X text 250 179 <-- "output-right" is the selector; ! #X text 22 350 The selector is a symbolic atom , which is a non-numeric ! string with no white space , semicolons , or commas. In the case ! of messages whose first element is a numeric atom , the "float" selector ! is implied.; ! #X connect 1 0 2 0; ! #X connect 1 1 3 0; ! #X connect 4 0 1 0; ! #X connect 5 0 1 0; --- 14,44 ---- #X connect 3 0 1 0; #X connect 3 1 2 0; ! #X restore 51 201 pd object; ! #X floatatom 51 244 5 0 0 0 - - -; ! #X floatatom 136 244 5 0 0 0 - - -; ! #X msg 83 155 output-right 309; ! #X msg 50 105 output-left 8675; ! #X text 9 28 Every message has a selector. The selector is the first element in the message. It tells the object which receives that message what to do with it. A selector is basically like a command or a function. ; ! #X text 220 106 <-- "output-left" is the selector; ! #X text 250 156 <-- "output-right" is the selector; ! #X text 205 377 For more info:; ! #X obj 223 394 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.1 ! ; ! #X text 19 348 symbol; ! #X text 179 320 list; ! #X text 159 349 my23; ! #X text 217 338 output-left; ! #X text 340 338 2523; ! #X text 466 320 -134.4; ! #X text 536 347 is ; next; ! #X text 8 272 The selector has a specific format. It needs to be a ! symbolic atom with no spaces , semicolons , or commas.; ! #X text 91 337 fl--^; ! #X text 403 351 my , 23; ! #X connect 3 0 4 0; ! #X connect 3 1 5 0; ! #X connect 6 0 3 0; ! #X connect 7 0 3 0;