diff options
-rw-r--r-- | doc/tutorials/intro/Attic/trigger_conversion.pd | 28 | ||||
-rw-r--r-- | doc/tutorials/intro/floats_and_ints.pd | 23 | ||||
-rw-r--r-- | doc/tutorials/intro/trigger_conversion.pd | 28 | ||||
-rw-r--r-- | doc/tutorials/intro/typing_conventions.pd | 25 |
4 files changed, 104 insertions, 0 deletions
diff --git a/doc/tutorials/intro/Attic/trigger_conversion.pd b/doc/tutorials/intro/Attic/trigger_conversion.pd new file mode 100644 index 00000000..3a183963 --- /dev/null +++ b/doc/tutorials/intro/Attic/trigger_conversion.pd @@ -0,0 +1,28 @@ +#N canvas 227 116 643 459 12; +#X obj -32 7 cnv 15 400 40 empty empty trigger_conversion 20 12 0 24 +-228992 -66577 0; +#X obj 126 187 trigger anything float bang; +#X text -21 80 [trigger] can also do conversions in addition to ordering. +The keyword "anything" tells [trigger] to do no conversion.; +#X msg 125 142 float 45.234; +#X floatatom 128 213 5 0 0 0 - - -; +#X floatatom 263 212 5 0 0 0 - - -; +#X obj 404 211 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 10 296 12 45 blah; +#X msg 131 295 blah; +#X msg 189 296 123; +#X msg 233 295 symbol test; +#X obj 128 368 print bang; +#X obj 128 342 trigger bang anything; +#X obj 333 368 print anything; +#X connect 1 0 4 0; +#X connect 1 1 5 0; +#X connect 1 2 6 0; +#X connect 3 0 1 0; +#X connect 7 0 12 0; +#X connect 8 0 12 0; +#X connect 9 0 12 0; +#X connect 10 0 12 0; +#X connect 12 0 11 0; +#X connect 12 1 13 0; diff --git a/doc/tutorials/intro/floats_and_ints.pd b/doc/tutorials/intro/floats_and_ints.pd new file mode 100644 index 00000000..28ab376c --- /dev/null +++ b/doc/tutorials/intro/floats_and_ints.pd @@ -0,0 +1,23 @@ +#N canvas 338 33 639 455 12; +#X obj -47 -1 cnv 15 400 40 empty empty floats_and_ints 20 12 0 24 +-228992 -66577 0; +#X text -40 55 In Pd \, there is only one kind of number \, its generally +known as a "float" \, which is a word used in programming to mean a +"floating point number" \, i.e. a number with a decimal point in it. +; +#X text -34 237 Oftentimes \, its useful to use integers. For this +there is the [int] object.; +#X text 26 144 4.5; +#X text 69 200 1.234e+07; +#X text 178 157 -0.0032; +#X text 313 173 4.3332; +#X obj 213 317 int; +#X floatatom 213 353 5 0 0 1 int - -; +#X floatatom 154 353 5 0 0 0 float - -; +#X obj 216 281 hsl 128 15 0 20 0 0 empty empty empty -2 -6 0 8 -262144 +-1 -1 2800 1; +#X text -32 391 floats and ints are direct representations of how your +CPU handles numbers.; +#X connect 7 0 8 0; +#X connect 10 0 9 0; +#X connect 10 0 7 0; diff --git a/doc/tutorials/intro/trigger_conversion.pd b/doc/tutorials/intro/trigger_conversion.pd new file mode 100644 index 00000000..3a183963 --- /dev/null +++ b/doc/tutorials/intro/trigger_conversion.pd @@ -0,0 +1,28 @@ +#N canvas 227 116 643 459 12; +#X obj -32 7 cnv 15 400 40 empty empty trigger_conversion 20 12 0 24 +-228992 -66577 0; +#X obj 126 187 trigger anything float bang; +#X text -21 80 [trigger] can also do conversions in addition to ordering. +The keyword "anything" tells [trigger] to do no conversion.; +#X msg 125 142 float 45.234; +#X floatatom 128 213 5 0 0 0 - - -; +#X floatatom 263 212 5 0 0 0 - - -; +#X obj 404 211 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 10 296 12 45 blah; +#X msg 131 295 blah; +#X msg 189 296 123; +#X msg 233 295 symbol test; +#X obj 128 368 print bang; +#X obj 128 342 trigger bang anything; +#X obj 333 368 print anything; +#X connect 1 0 4 0; +#X connect 1 1 5 0; +#X connect 1 2 6 0; +#X connect 3 0 1 0; +#X connect 7 0 12 0; +#X connect 8 0 12 0; +#X connect 9 0 12 0; +#X connect 10 0 12 0; +#X connect 12 0 11 0; +#X connect 12 1 13 0; diff --git a/doc/tutorials/intro/typing_conventions.pd b/doc/tutorials/intro/typing_conventions.pd new file mode 100644 index 00000000..5f3f8c2d --- /dev/null +++ b/doc/tutorials/intro/typing_conventions.pd @@ -0,0 +1,25 @@ +#N canvas 468 219 647 458 12; +#X obj -29 10 cnv 15 400 40 empty empty typing_conventions 20 12 0 +24 -228992 -66577 0; +#X text 17 160 an object is a word surrounded by two square brackets +; +#X text -18 135 [route] ==; +#X obj 95 136 route; +#X msg 106 203 my msg; +#X text -18 202 [my msg( ==; +#X text -18 290 You can even make ASCII patches:; +#X msg 344 310 bang; +#X obj 344 349 delay 500; +#X text -1 318 [bang(; +#X text 2 335 |; +#X text -1 351 [delay 500]; +#X text 2 371 |; +#X text 204 350 ==; +#X text -1 388 [print why?]; +#X obj 344 388 print why?; +#X text -26 72 When typing out various Pd elements \, there are a couple +conventions:; +#X text 17 230 an message is a word preceeded by an open square bracket +and terminated by an open parenthesis; +#X connect 7 0 8 0; +#X connect 8 0 15 0; |