aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_data_types.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pddp/all_about_data_types.pd')
-rw-r--r--doc/pddp/all_about_data_types.pd186
1 files changed, 138 insertions, 48 deletions
diff --git a/doc/pddp/all_about_data_types.pd b/doc/pddp/all_about_data_types.pd
index 4f53fda1..b0293e88 100644
--- a/doc/pddp/all_about_data_types.pd
+++ b/doc/pddp/all_about_data_types.pd
@@ -1,5 +1,5 @@
-#N canvas 220 70 873 654 10;
-#X obj 453 470 route;
+#N canvas 246 35 862 651 10;
+#X obj 453 446 route;
#X floatatom 93 115 5 0 0 1 "float" - -;
#X symbolatom 184 115 10 0 0 1 "symbol" - -;
#X obj 96 211 symbol;
@@ -12,7 +12,7 @@
#X floatatom 15 233 5 0 0 0 - - -;
#X msg 20 212 12;
#X msg 3 192 float 83;
-#N canvas 770 126 486 336 Related_Objects 0;
+#N canvas 770 126 490 340 Related_Objects 0;
#X obj 32 54 ftos;
#X obj 68 54 list2symbol;
#X text 23 22 data type conversion;
@@ -28,29 +28,28 @@
#X obj 158 159 symbol2list;
#X obj 247 138 l2s;
#X obj 247 158 s2l;
-#X restore 433 581 pd Related_Objects;
-#X text 427 256 Many objects cast the data they receive when they output
+#X obj 123 252 list;
+#X restore 467 591 pd Related_Objects;
+#X text 427 232 Many objects cast the data they receive when they output
it:;
-#X text 546 337 Some objects do not cast the data:;
-#X obj 444 308 trigger anything;
-#X msg 444 283 this is a list without a cast;
-#X obj 444 331 print;
-#X text 430 371 Some objects need to have the data explicitly declared
+#X text 546 313 Some objects do not cast the data:;
+#X obj 444 284 trigger anything;
+#X msg 444 259 this is a list without a cast;
+#X obj 444 307 print;
+#X text 430 347 Some objects need to have the data explicitly declared
in order to handle it. These are mostly symbol handling objects.;
-#X text 430 437 Objects which route data generally can handle explicitly
+#X text 430 413 Objects which route data generally can handle explicitly
or implicitly defined data.;
-#X obj 500 470 trigger;
-#X obj 558 470 niagara;
-#X obj 446 414 select;
+#X obj 500 446 trigger;
+#X obj 558 446 niagara;
+#X obj 446 390 select;
#X obj -5 -2 cnv 15 850 20 empty empty all_about_data_types 20 10 1
18 -233017 -66577 0;
#X obj 811 -1 pddp;
-#X text 635 597 updated for Pd version 0.37.1;
#X text -9 291 "anything";
#X text -9 407 "list";
#X text -9 393 "float";
#X text -9 434 "symbol";
-#X text -9 420 "scalar";
#X text -9 380 "bang";
#X msg 91 339 anything 1 two three;
#X msg 242 339 one 2 3;
@@ -61,26 +60,25 @@ or implicitly defined data.;
-1;
#X msg 244 373 list one 2 3;
#X msg 283 403 1 2 3;
-#X text 197 35 float symbol pointer;
#X text -3 35 atoms (basic data types):;
#X text -3 60 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 441 208 int;
-#X obj 449 188 / 5.23;
-#X floatatom 449 160 5 0 0 0 - - -;
-#X floatatom 482 228 5 0 0 0 - - -;
-#X floatatom 441 228 5 0 0 0 - - -;
-#X obj 531 158 tosymbol;
-#X obj 595 159 fromsymbol;
-#X obj 678 158 list2symbol;
-#X obj 682 200 ftos;
+#X obj 441 184 int;
+#X obj 449 164 / 5.23;
+#X floatatom 449 136 5 0 0 0 - - -;
+#X floatatom 482 204 5 0 0 0 - - -;
+#X floatatom 441 204 5 0 0 0 - - -;
+#X obj 531 134 tosymbol;
+#X obj 595 135 fromsymbol;
+#X obj 678 134 list2symbol;
+#X obj 682 176 ftos;
#X obj 637 43 symbol;
-#X obj 600 96 int;
+#X obj 600 87 int;
#X obj 719 43 pointer;
-#X obj 460 96 bang;
-#X obj 498 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#X obj 460 87 bang;
+#X obj 498 88 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 519 43 float;
#X text 1 527 There a number of objects which are used for storing
@@ -88,28 +86,114 @@ 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 628 96 lister;
+#X obj 628 87 lister;
#X text 560 44 aka;
#X obj 586 43 f;
#X text 22 613 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 239 627 released under the GNU GPL;
-#X text 435 614 $Revision: 1.4 $$Date: 2005-04-26 05:34:40 $;
+#X text 435 614 $Revision: 1.5 $$Date: 2005-07-28 19:45:58 $;
#X text 436 627 $Author: eighthave $;
-#X obj 433 517 pddp_open all_about_lists_vs_anythings;
-#X obj 433 538 pddp_open all_about_symbol_construction;
-#X obj 433 559 pddp_open all_about_data_structures;
-#X text 515 97 (aka [bng]);
+#X obj 490 518 pddp_open all_about_lists_vs_anythings;
+#X obj 490 539 pddp_open all_about_symbol_construction;
+#X obj 490 560 pddp_open all_about_data_structures;
+#X text 515 88 (aka [bng]);
#X text 3 304 "anything" allows anything to pass through unchanged.
It is not a data type tho.;
#X text -6 143 "symbols" need to be declared explicitly. "floats" do
not need to be declared explicitly \, but can be:;
#X text 153 212 casting as a "symbol";
#X text 1 509 CASTING AND STORAGE OBJECTS;
-#X text 431 498 FOR MORE INFO:;
-#X text 430 138 EXAMPLES OF CASTING;
+#X text 431 474 FOR MORE INFO:;
+#X text 430 114 EXAMPLES OF CASTING;
#X text 425 43 atom objects:;
-#X text 432 74 other data types:;
+#X text 432 65 other data types:;
+#X text -9 420 "pointer";
+#X obj 24 460 trigger anything bang float list pointer symbol;
+#X obj 24 480 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 88 480 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 152 479 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 218 480 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 283 479 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 348 480 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 193 35 "float" \, "symbol" \, "pointer";
+#N canvas 0 22 505 381 float/list 0;
+#X msg 75 133 float 1 2 3;
+#X text 34 22 FLOAT CONVERSION;
+#X msg 95 187 list 1 2 3;
+#X text 92 164 A list with multiple elements remains a list.;
+#X text 43 59 A float with one element remains a float.;
+#X text 72 106 A float with multiple elements remains a float but is
+cut to one element.;
+#X text 99 218 A list with one float element is converted to a float.
+;
+#X obj 58 308 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1
+-1;
+#X obj 105 308 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1
+-1;
+#X obj 152 308 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144
+-1 -1;
+#X obj 200 308 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1
+-1;
+#X obj 248 308 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144
+-1 -1;
+#X obj 57 286 route bang float symbol list;
+#X obj 92 349 print FLOAT;
+#X msg 50 81 float 3;
+#X msg 106 239 list 2;
+#X obj 188 349 print LIST;
+#X connect 0 0 12 0;
+#X connect 2 0 12 0;
+#X connect 12 0 7 0;
+#X connect 12 1 8 0;
+#X connect 12 1 13 0;
+#X connect 12 2 9 0;
+#X connect 12 3 10 0;
+#X connect 12 3 16 0;
+#X connect 12 4 11 0;
+#X connect 14 0 12 0;
+#X connect 15 0 12 0;
+#X restore 465 493 pd float/list conversion;
+#N canvas 0 22 479 361 empty 0;
+#X obj 78 268 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1
+-1;
+#X obj 125 268 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1
+-1;
+#X obj 172 268 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144
+-1 -1;
+#X obj 220 268 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1
+-1;
+#X obj 268 268 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144
+-1 -1;
+#X msg 127 205 list;
+#X msg 50 75 float;
+#X msg 97 134 symbol;
+#X text 31 21 EMPTY DATA TYPES;
+#X obj 77 246 route bang float symbol list;
+#X obj 73 326 print FLOAT;
+#X obj 155 326 print SYMBOL;
+#X text 120 184 An empty list is converted to a bang;
+#X text 85 114 An empty "symbol" remains a empty "symbol".;
+#X text 46 55 An empty "float" remains a "float" and is initialized
+to 0;
+#X connect 5 0 9 0;
+#X connect 6 0 9 0;
+#X connect 7 0 9 0;
+#X connect 9 0 0 0;
+#X connect 9 1 1 0;
+#X connect 9 1 10 0;
+#X connect 9 2 2 0;
+#X connect 9 2 11 0;
+#X connect 9 3 3 0;
+#X connect 9 4 4 0;
+#X restore 656 493 pd empty data types;
+#X text 635 597 updated for Pd version 0.38.4;
#X connect 3 0 4 0;
#X connect 5 0 4 0;
#X connect 6 0 3 0;
@@ -118,13 +202,19 @@ not need to be declared explicitly \, but can be:;
#X connect 12 0 10 0;
#X connect 16 0 18 0;
#X connect 17 0 16 0;
-#X connect 33 0 36 0;
-#X connect 34 0 36 0;
-#X connect 36 0 35 0;
-#X connect 36 3 37 0;
-#X connect 38 0 36 0;
-#X connect 39 0 36 0;
-#X connect 43 0 47 0;
-#X connect 44 0 43 0;
-#X connect 44 0 46 0;
-#X connect 45 0 44 0;
+#X connect 31 0 34 0;
+#X connect 32 0 34 0;
+#X connect 34 0 33 0;
+#X connect 34 3 35 0;
+#X connect 36 0 34 0;
+#X connect 37 0 34 0;
+#X connect 40 0 44 0;
+#X connect 41 0 40 0;
+#X connect 41 0 43 0;
+#X connect 42 0 41 0;
+#X connect 76 0 77 0;
+#X connect 76 1 78 0;
+#X connect 76 2 79 0;
+#X connect 76 3 80 0;
+#X connect 76 4 81 0;
+#X connect 76 5 82 0;