#N canvas 310 87 865 646 10; #X obj 462 499 route; #X floatatom 102 114 5 0 0 0 - - -; #X text 141 114 float; #X symbolatom 193 114 10 0 0 0 - - -; #X text 274 115 symbol; #X obj 105 210 symbol; #X symbolatom 105 257 0 0 0 0 - - -; #X msg 114 234 word; #X msg 105 192 test; #X msg 88 170 symbol this; #X text 162 212 casting as a symbol; #X text 179 169 set type directly; #X text 153 235 does not work (check console messages); #X floatatom 24 232 5 0 0 0 - - -; #X msg 29 211 12; #X msg 12 191 float 83; #N canvas 770 126 482 332 Related_Objects 0; #X obj 32 54 ftos; #X obj 68 54 list2symbol; #X text 23 22 data type conversion; #X obj 155 55 tosymbol; #X obj 219 55 fromsymbol; #X obj 36 252 lister; #X obj 34 98 atoi; #X obj 30 138 list2int; #X obj 94 137 l2i; #X obj 96 163 a2l; #X obj 29 164 any2list; #X obj 158 138 list2symbol; #X obj 158 159 symbol2list; #X obj 247 138 l2s; #X obj 247 158 s2l; #X restore 706 549 pd Related_Objects; #X obj 419 19 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 419 594 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 436 255 Many objects cast the data they receive when they output it:; #X text 555 336 Some objects do not cast the data:; #X obj 453 307 trigger anything; #X msg 453 282 this is a list without a cast; #X obj 453 330 print; #X text 439 390 Some objects need to have the data explicitly declared in order to handle it. These are mostly symbol handling objects.; #X text 439 466 Objects which route data generally can handle explicitly or implicitly defined data.; #X obj 509 499 trigger; #X obj 567 499 niagara; #X obj 455 433 select; #X text 3 142 symbols need to be declared explicitly \, floats do not \, but can be:; #X obj 4 -3 cnv 15 850 20 empty empty all_about_data_types 20 10 1 18 -233017 -66577 0; #X obj 820 -2 pddp; #X text 17 604 by Hans-Christoph Steiner ; #X text 12 303 the "anything" data type allows anything to pass through unchanged.; #X text 441 530 click on these for more info:; #X text 629 606 updated for Pd version 0.37.1; #X text 0 290 "anything"; #X text 0 406 "list"; #X text 0 392 "float"; #X text 0 433 "symbol"; #X text 0 419 "scalar"; #X text 0 379 "bang"; #X msg 100 327 anything 1 two three; #X msg 251 327 one 2 3; #X obj 156 410 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 160 384 t a b f l p s; #X obj 190 411 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 253 361 list one 2 3; #X msg 292 391 1 2 3; #X obj 453 550 all_about_lists_vs_anythings; #X obj 452 571 all_about_symbol_construction; #X obj 668 571 all_about_data_structures; #X text 206 34 float symbol pointer; #X text 6 34 atoms (basic data types):; #X text 6 59 The basic data types are known as 'atoms' in Pd. "float" and "symbol" atoms have 'atom boxes' for realtime display and control from within a patch. "pointer" atoms are used for accessing data stored in graphical data structures.; #X obj 450 207 int; #X obj 458 187 / 5.23; #X floatatom 458 159 5 0 0 0 - - -; #X floatatom 491 227 5 0 0 0 - - -; #X floatatom 450 227 5 0 0 0 - - -; #X text 439 137 examples of casting:; #X obj 540 157 tosymbol; #X obj 604 158 fromsymbol; #X obj 687 157 list2symbol; #X obj 691 199 ftos; #X obj 646 42 symbol; #X obj 613 85 int; #X obj 728 42 pointer; #X obj 473 85 bang; #X obj 511 86 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 528 86 aka [bng]; #X text 10 508 casting and storage objects:; #X obj 528 42 float; #X text 10 526 There a number of objects which are used for storing messages \, or casting messages as a specific data type \, sometimes converting from one data type to another. The right inlet on these objects is stores that value \, which can be later output using a bang. ; #X obj 641 85 lister; #X text 464 42 atoms:; #X text 569 43 aka; #X obj 595 42 f; #X connect 5 0 6 0; #X connect 7 0 6 0; #X connect 8 0 5 0; #X connect 9 0 6 0; #X connect 14 0 13 0; #X connect 15 0 13 0; #X connect 17 0 18 0; #X connect 21 0 23 0; #X connect 22 0 21 0; #X connect 42 0 45 0; #X connect 43 0 45 0; #X connect 45 0 44 0; #X connect 45 3 46 0; #X connect 47 0 45 0; #X connect 48 0 45 0; #X connect 55 0 59 0; #X connect 56 0 55 0; #X connect 56 0 58 0; #X connect 57 0 56 0;