From 2389091c6bf73e52fd19551f366034a15fdf7d95 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 13 Apr 2006 23:48:34 +0000 Subject: integrated lots of ideas and content from ggkarman's Tutoriales pd svn path=/trunk/; revision=4906 --- doc/tutorials/intro/24.guis.pd | 813 --------------------- doc/tutorials/intro/24.turning_on_and_off.pd | 50 ++ doc/tutorials/intro/25.gui_objects.pd | 48 -- doc/tutorials/intro/25.properties.pd | 16 + doc/tutorials/intro/26.nervous_guis.pd | 337 --------- doc/tutorials/intro/26.sliders.pd | 42 ++ doc/tutorials/intro/27.guis.pd | 813 +++++++++++++++++++++ doc/tutorials/intro/28.gui_objects.pd | 48 ++ doc/tutorials/intro/29.nervous_guis.pd | 337 +++++++++ doc/tutorials/intro/Attic/grabbing_keystrokes.pd | 61 ++ .../intro/Attic/sorting_messages_by_type.pd | 80 +- doc/tutorials/intro/README.txt | 9 +- doc/tutorials/intro/TODO | 62 +- doc/tutorials/intro/arguments.pd | 59 -- doc/tutorials/intro/building_lists.pd | 31 + doc/tutorials/intro/comparing_numbers.pd | 56 ++ doc/tutorials/intro/creation_arguments.pd | 59 ++ doc/tutorials/intro/grabbing_keystrokes.pd | 61 ++ doc/tutorials/intro/selecting_events.pd | 27 + .../intro/sorting_messages_by_selectors.pd | 7 +- doc/tutorials/intro/sorting_messages_by_type.pd | 80 +- doc/tutorials/intro/storing_a_number_globally.pd | 35 + doc/tutorials/intro/using_lists.pd | 17 + 23 files changed, 1764 insertions(+), 1384 deletions(-) delete mode 100644 doc/tutorials/intro/24.guis.pd create mode 100644 doc/tutorials/intro/24.turning_on_and_off.pd delete mode 100644 doc/tutorials/intro/25.gui_objects.pd create mode 100644 doc/tutorials/intro/25.properties.pd delete mode 100644 doc/tutorials/intro/26.nervous_guis.pd create mode 100644 doc/tutorials/intro/26.sliders.pd create mode 100644 doc/tutorials/intro/27.guis.pd create mode 100644 doc/tutorials/intro/28.gui_objects.pd create mode 100644 doc/tutorials/intro/29.nervous_guis.pd create mode 100644 doc/tutorials/intro/Attic/grabbing_keystrokes.pd delete mode 100644 doc/tutorials/intro/arguments.pd create mode 100644 doc/tutorials/intro/building_lists.pd create mode 100644 doc/tutorials/intro/comparing_numbers.pd create mode 100644 doc/tutorials/intro/creation_arguments.pd create mode 100644 doc/tutorials/intro/grabbing_keystrokes.pd create mode 100644 doc/tutorials/intro/selecting_events.pd create mode 100644 doc/tutorials/intro/storing_a_number_globally.pd create mode 100644 doc/tutorials/intro/using_lists.pd (limited to 'doc/tutorials') diff --git a/doc/tutorials/intro/24.guis.pd b/doc/tutorials/intro/24.guis.pd deleted file mode 100644 index ca08bb3a..00000000 --- a/doc/tutorials/intro/24.guis.pd +++ /dev/null @@ -1,813 +0,0 @@ -#N canvas 153 19 568 572 10; -#X obj -4 -4 cnv 15 600 700 empty empty gui-INTRO 237 20 2 14 -261819 --143491 0; -#X text 101 4 bng; -#X obj 456 313 vsl 15 128 0 127 0 0 empty empty default_15x128 8 -8 -0 8 -262144 -1 -1 0 1; -#X obj 354 42 tgl 100 1 empty empty 100_pix 8 -8 0 8 -250685 -24198 --42246 1 1; -#X obj 57 251 hsl 128 15 0 127 0 0 empty empty default_128x15 8 -8 -0 8 -262144 -1 -1 0 1; -#X obj 78 226 hsl 20 8 0 19 0 0 empty empty min_20x8 8 -8 0 8 -262144 --1 -1 0 1; -#X obj 478 326 vsl 8 20 0 19 0 0 empty empty min_8x20 8 -8 0 8 -262144 --1 -1 0 1; -#X obj 458 48 tgl 8 0 empty empty min_8 8 -8 0 8 -262144 -1 -1 0 1 -; -#X obj 458 71 tgl 15 0 empty empty default_15 8 -8 0 8 -262144 -1 -1 -0 1; -#X obj 459 109 tgl 30 0 empty empty 30_pix 8 -8 0 8 -262144 -1 -1 0 -1; -#X obj 101 88 bng 30 250 50 0 empty empty 30_pix 8 -8 0 8 -262144 -1 --1; -#X obj 412 304 vsl 30 250 0 249 0 1 empty empty 30x250 8 -8 0 8 -184301 --42886 -42246 21800 1; -#X obj 7 271 hsl 251 30 0 250 0 1 empty empty 251x30 8 -8 0 8 -147456 --1109 -66577 12500 1; -#X text 180 518 (c) musil@iem.kug.ac.at; -#X text 222 531 IEM KUG; -#X text 197 543 graz \, austria 2001; -#X obj 40 343 vu 25 200 empty empty 8 -8 0 8 -1 -99865 1 0; -#X obj 13 24 bng 75 5000 25 1 empty empty 75pix+init 8 -8 0 8 -262131 --261458 -123526; -#X obj 100 376 vu 15 120 empty empty 8 -8 0 8 -66577 -1 1 0; -#X obj 186 375 vu 10 80 empty empty 8 -8 0 8 -66577 -1 1 0; -#X text 99 313 vu; -#N canvas 438 180 374 414 animate_vu 0; -#X obj 40 211 t f f; -#X obj 65 233 + 6; -#X obj 40 257 pack 0 0; -#X obj 78 94 tgl 15 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0 1 -; -#X obj 78 115 sel 0 1; -#X obj 78 74 metro 4000; -#X msg 100 137 30 3000; -#X msg 78 167 -130 3000; -#X obj 40 189 line -130 50; -#X obj 78 51 inlet; -#X obj 40 316 outlet; -#X obj 87 316 outlet; -#X obj 134 316 outlet; -#X connect 0 0 2 0; -#X connect 0 1 1 0; -#X connect 1 0 2 1; -#X connect 2 0 10 0; -#X connect 2 0 11 0; -#X connect 2 0 12 0; -#X connect 3 0 4 0; -#X connect 4 0 7 0; -#X connect 4 1 6 0; -#X connect 5 0 3 0; -#X connect 6 0 8 0; -#X connect 7 0 8 0; -#X connect 8 0 0 0; -#X connect 9 0 5 0; -#X restore 99 349 pd animate_vu; -#X obj 99 331 tgl 15 1 empty empty empty 8 -8 0 10 -262144 -1 -1 1 -1; -#X text 360 8 toggle = tgl; -#X text 68 198 hslider = hsl; -#X text 430 271 vslider = vsl; -#X obj 13 160 print initial_bang; -#X obj 21 118 bng 15 250 50 0 empty empty default_15 8 -8 0 8 -262144 --1 -1; -#X obj 104 48 bng 8 250 50 0 empty empty min_8 8 -8 0 10 -262144 -1 --1; -#X obj 21 137 print no_initial_bang; -#X obj 283 324 cnv 15 100 30 empty empty empty 20 12 2 20 -225271 -66577 -0; -#X obj 283 355 cnv 15 100 30 empty empty empty 20 12 2 20 -225280 -66577 -0; -#X obj 283 386 cnv 15 100 30 empty empty empty 20 12 2 20 -261681 -66577 -0; -#X obj 283 417 cnv 15 100 30 empty empty empty 20 12 2 20 -257472 -66577 -0; -#X obj 172 375 vu 10 80 empty empty 8 -8 0 8 -66577 -1 0 0; -#X obj 310 203 hradio 15 1 1 8 empty empty default_8*15 8 -8 0 8 -262144 --1 -1 2; -#X obj 254 223 hradio 25 1 1 12 empty empty 12*25 8 -8 0 8 -1433 -225280 --355 1; -#N canvas 179 78 690 573 nervous 0; -#X obj 10 23 tgl 55 1 empty start_nervously1 start_it 8 -8 0 10 -260818 --1 -250685 0 1; -#X obj 131 141 bng 51 1200 50 0 empty nerv_bng bang 8 -8 0 10 -253378 --137031 -222091; -#X obj 120 418 hsl 22 12 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 10 --71033 -66198 -128091 0 1; -#X obj 448 140 tgl 11 1 empty nerv_tgl toggle 8 -8 0 10 -141355 -82199 --51488 0 1; -#X obj 447 383 vsl 15 111 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 -10 -150187 -73940 -248863 0 1; -#N canvas 135 99 382 469 control 0; -#X obj 19 21 inlet; -#X obj 19 50 t b f; -#X obj 19 153 del 900; -#X obj 19 212 del 900; -#X obj 19 93 del 100; -#X obj 19 283 del 900; -#X obj 33 125 f; -#X obj 33 180 f; -#X obj 33 245 f; -#X obj 33 309 f; -#N canvas 280 166 794 432 bng 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 234 368 pack 0 0 0; -#X obj 250 29 metro 2000; -#X obj 445 122 random 555666; -#X obj 445 168 + 8; -#X obj 445 145 % 120; -#X obj 84 32 metro 100; -#X obj 234 261 random 1.67772e+007; -#X obj 266 283 random 1.67772e+007; -#X obj 299 315 random 1.67772e+007; -#X obj 84 11 inlet; -#X msg 64 312 \; nerv_bng delta \$1 \$2; -#X msg 234 390 \; nerv_bng color \$1 \$2 \$3; -#X msg 445 192 \; nerv_bng size \$1; -#X msg 250 51 \; nerv_bng bang; -#X obj 234 340 * -1; -#X obj 266 316 * -1; -#X obj 299 342 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 22 0; -#X connect 11 0 3 0; -#X connect 11 0 14 0; -#X connect 11 0 18 0; -#X connect 11 1 4 0; -#X connect 11 1 19 0; -#X connect 11 2 20 0; -#X connect 12 0 23 0; -#X connect 13 0 25 0; -#X connect 14 0 16 0; -#X connect 15 0 24 0; -#X connect 16 0 15 0; -#X connect 17 0 11 0; -#X connect 18 0 26 0; -#X connect 19 0 27 0; -#X connect 20 0 28 0; -#X connect 21 0 17 0; -#X connect 21 0 13 0; -#X connect 26 0 12 0; -#X connect 27 0 12 1; -#X connect 28 0 12 2; -#X restore 114 143 pd bng; -#N canvas 139 89 794 432 tgl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 445 168 + 8; -#X obj 445 144 % 120; -#X obj 85 31 metro 100; -#X obj 264 28 metro 1000; -#X obj 85 10 inlet; -#X msg 64 312 \; nerv_tgl delta \$1 \$2; -#X msg 226 322 \; nerv_tgl color \$1 \$2 \$3; -#X msg 445 192 \; nerv_tgl size \$1; -#X msg 264 51 \; nerv_tgl bang; -#X obj 226 298 pack 0 0 0; -#X obj 226 191 random 1.67772e+007; -#X obj 258 213 random 1.67772e+007; -#X obj 291 245 random 1.67772e+007; -#X obj 226 270 * -1; -#X obj 258 246 * -1; -#X obj 291 272 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 18 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 23 0; -#X connect 11 1 4 0; -#X connect 11 1 24 0; -#X connect 11 2 25 0; -#X connect 12 0 14 0; -#X connect 13 0 20 0; -#X connect 14 0 13 0; -#X connect 15 0 11 0; -#X connect 16 0 21 0; -#X connect 17 0 15 0; -#X connect 17 0 16 0; -#X connect 22 0 19 0; -#X connect 23 0 26 0; -#X connect 24 0 27 0; -#X connect 25 0 28 0; -#X connect 26 0 22 0; -#X connect 27 0 22 1; -#X connect 28 0 22 2; -#X restore 114 198 pd tgl; -#N canvas 322 99 794 432 hsl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 560 188 + 8; -#X obj 560 128 random 773322; -#X obj 445 208 pack 0 0; -#X obj 84 32 metro 100; -#X obj 561 155 % 30; -#X obj 445 183 + 20; -#X obj 446 149 % 110; -#X obj 254 305 metro 1000; -#X obj 254 327 random 846352; -#X obj 254 350 % 130; -#X obj 84 11 inlet; -#X msg 64 321 \; nerv_hsl delta \$1 \$2; -#X msg 254 373 \; nerv_hsl set \$1; -#X msg 445 231 \; nerv_hsl size \$1 \$2; -#X obj 245 202 pack 0 0 0; -#X obj 245 95 random 1.67772e+007; -#X obj 277 117 random 1.67772e+007; -#X obj 310 149 random 1.67772e+007; -#X obj 245 174 * -1; -#X obj 277 150 * -1; -#X obj 310 176 * -1; -#X msg 245 229 \; nerv_hsl color \$1 \$2 \$3; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 24 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 28 0; -#X connect 11 1 4 0; -#X connect 11 1 14 0; -#X connect 11 1 29 0; -#X connect 11 2 30 0; -#X connect 12 0 19 0; -#X connect 13 0 15 1; -#X connect 14 0 17 0; -#X connect 15 0 26 0; -#X connect 16 0 11 0; -#X connect 17 0 13 0; -#X connect 18 0 15 0; -#X connect 18 0 22 1; -#X connect 19 0 18 0; -#X connect 20 0 21 0; -#X connect 21 0 22 0; -#X connect 22 0 25 0; -#X connect 23 0 16 0; -#X connect 23 0 20 0; -#X connect 27 0 34 0; -#X connect 28 0 31 0; -#X connect 29 0 32 0; -#X connect 30 0 33 0; -#X connect 31 0 27 0; -#X connect 32 0 27 1; -#X connect 33 0 27 2; -#X restore 112 263 pd hsl; -#N canvas 148 132 794 432 vsl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 560 128 random 773322; -#X obj 445 208 pack 0 0; -#X obj 84 32 metro 100; -#X obj 241 299 metro 1000; -#X obj 240 325 random 846352; -#X obj 241 352 % 130; -#X obj 561 155 % 110; -#X obj 560 188 + 20; -#X obj 446 149 % 30; -#X obj 445 183 + 3; -#X obj 84 11 inlet; -#X msg 239 227 \; nerv_vsl color \$1 \$2 \$3; -#X msg 445 231 \; nerv_vsl size \$1 \$2; -#X msg 64 310 \; nerv_vsl delta \$1 \$2; -#X msg 241 376 \; nerv_vsl set \$1; -#X obj 239 203 pack 0 0 0; -#X obj 239 96 random 1.67772e+007; -#X obj 271 118 random 1.67772e+007; -#X obj 304 150 random 1.67772e+007; -#X obj 239 175 * -1; -#X obj 271 151 * -1; -#X obj 304 177 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 26 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 29 0; -#X connect 11 1 4 0; -#X connect 11 1 13 0; -#X connect 11 1 30 0; -#X connect 11 2 31 0; -#X connect 12 0 21 0; -#X connect 13 0 19 0; -#X connect 14 0 25 0; -#X connect 15 0 11 0; -#X connect 16 0 17 0; -#X connect 17 0 18 0; -#X connect 18 0 27 0; -#X connect 19 0 20 0; -#X connect 20 0 14 1; -#X connect 20 0 18 1; -#X connect 21 0 22 0; -#X connect 22 0 14 0; -#X connect 23 0 15 0; -#X connect 23 0 16 0; -#X connect 28 0 24 0; -#X connect 29 0 32 0; -#X connect 30 0 33 0; -#X connect 31 0 34 0; -#X connect 32 0 28 0; -#X connect 33 0 28 1; -#X connect 34 0 28 2; -#X restore 113 327 pd vsl; -#X connect 0 0 1 0; -#X connect 1 0 4 0; -#X connect 1 1 6 1; -#X connect 1 1 7 1; -#X connect 1 1 8 1; -#X connect 1 1 9 1; -#X connect 2 0 3 0; -#X connect 2 0 7 0; -#X connect 3 0 5 0; -#X connect 3 0 8 0; -#X connect 4 0 2 0; -#X connect 4 0 6 0; -#X connect 5 0 9 0; -#X connect 6 0 10 0; -#X connect 7 0 11 0; -#X connect 8 0 12 0; -#X connect 9 0 13 0; -#X restore 10 85 pd control; -#X connect 0 0 5 0; -#X restore 295 424 pd nervous; -#X floatatom 239 84 4 0 0 0 - - -; -#N canvas 226 38 811 519 properties 0; -#X obj 2 1 cnv 8 870 590 empty empty about_gui_properties 290 20 2 -18 -225280 -1109 0; -#X text 12 62 "selectable dimensions(pix): size:" = square-size of -the; -#X text 10 35 "dimensions(pix): size:" = square-size of the gui-objects -; -#X text 10 48 "dimensions(pix)(pix): width: height:" = width & height -; -#X text 11 177 "visible_rectangle(pix)(pix): width: height:" = width -&; -#X text 11 104 "flash-time(ms)(ms): intrrpt:" = flash-interrupt-time -; -#X text 411 62 selectable top-left corner of my_canvas in pixels.; -#X text 415 35 in pixels.; -#X text 11 76 "flash-time(ms)(ms): hold:" = flash-hold-time in msec -=; -#X text 405 76 duration of activity \, if a bang-object was activated -; -#X text 400 48 of the rectangular gui-object in pixels.; -#X text 402 177 height of a visible \, deactivated rectangle in pixels. -; -#X text 14 224 "new&old" or "new-only" = the radiobutton-object changes -its; -#X text 441 224 state in 2 ways:; -#X text 198 237 "new&old"-mode: output sends previous state off \, -current; -#X text 596 237 state on \;; -#X text 197 250 "new-only"-mode: output sends only current state on. -; -#X text 14 280 "steady on click" or "jump on click" = the 2 slider-objects -; -#X text 481 322 immediately to new mouse-position \,; -#X text 12 413 "label: font: fontsize:" = font-properties of label. -; -#X text 15 429 "colors:" = a click on radiobuttons "background:" \, -; -#X text 370 429 "front-color:" or "label-color:" activates the color-fields -; -#X text 174 193 if "init"-mode is selected \, the object displays and -puts; -#X text 15 266 "number:" = number of buttons of a radiobutton.; -#X text 205 89 by any message-event or by a mouse-click.; -#X text 388 104 in msec = duration of inactivity \, if an already; -#X text 205 117 activated bang is activated once more.; -#X text 11 132 "output-range: left: right:" = hslider-bounds; -#X text 332 132 for input- as well as output-values.; -#X text 332 146 for input- as well as output-values.; -#X text 11 146 "output-range: bottom: top:" = vslider-bounds; -#X text 12 193 "init" or "no init" =; -#X text 571 193 out its previously saved value.; -#X text 174 208 if "no init"-mode is selected \, nothing will happen. -; -#X text 433 280 react to mouse-click in 2 ways:; -#X text 201 294 "steady on click"-mode: slider-knob stays in position -\,; -#X text 225 307 mouse and knob will move parallel \;; -#X text 200 322 "jump on click"-mode: slider-knob jumps; -#X text 224 338 positions of mouse and knob will be identical \;; -#X text 402 353 receive-object with the same send-symbol-name.; -#X text 11 368 "receive-symbol:" = a send-object with the same; -#X text 11 353 "send-symbol:" = an output-message can be received by -a; -#X text 347 368 symbol-name can send an input-message to the gui-object. -; -#X text 13 383 "label: name:" = visible name of a gui-object \;; -#X text 343 383 it will be moved together with the gui-object.; -#X text 12 397 "label: x_off: y_off:" = coordinates of the label in -; -#X text 382 397 relation to top-left corner of gui-object.; -#X text 207 444 on the right side which display the current color of -the; -#X text 605 444 item \;; -#X text 11 161 "non-zero-value: value:" = toggle has 2; -#X text 292 161 value-states: zero and this value.; -#X text 208 460 to select a different color \, click on one of the -30 small; -#X text 614 459 preset-color-buttons \;; -#X text 208 475 each color (background \, front \, label) can be tuned -by its; -#X text 235 490 RGB-values (0 .. 252 \, step 4) and a click on the -set-button.; -#X restore 287 361 pd properties; -#N canvas 146 190 460 120 move 0; -#X obj 0 0 cnv 8 460 120 empty empty how_to_move_gui_objects 100 18 -2 20 -225271 -42246 0; -#X text 11 43 Select a gui-object \, then navigate the object by using -the 4 direction-keys: UP \, DOWN \, LEFT or RIGHT.; -#X text 12 70 If you press the SHIFT-Key too \, the object will move -10 times faster.; -#X restore 308 331 pd move; -#N canvas 151 38 522 451 dollar 0; -#X obj 0 0 cnv 8 560 160 empty empty the_dollar_thing 100 18 2 20 -261681 --123526 0; -#X text 10 39 if you want to send to \, or to receive from gui-objects -; -#X text 394 39 in abstractions \,; -#X text 36 52 you have to write into the property-entry:; -#X text 44 67 #1-label (instead of \$1-label).; -#X text 25 103 type #0-uniquelabel (instead of \$0-uniquelabel).; -#X text 9 88 if you want a unique send-receive-symbolname:; -#X restore 299 391 pd dollar; -#X obj 283 448 cnv 15 100 30 empty empty empty 20 12 2 20 -228992 -66577 -0; -#N canvas 177 21 730 638 messages 0; -#X obj 1 1 cnv 8 870 640 empty empty about_gui_messages 200 20 2 18 --228992 -355 0; -#X text 366 99 in pixels.; -#X text 9 84 "size 15 128" = change width & height; -#X text 9 159 "flashtime 50 600" = change flash-interrupt- and flash-hold -; -#X text 424 160 -time of bng-object.; -#X text 9 174 "pos 150 170" = change the x-y-position of the top-left -; -#X text 400 173 corner of a gui-object in pixels \;; -#X text 139 188 "pos 0 0" is the top-left corner of your window \; -; -#X text 143 204 the positive directions of x- and y-axes are right -and down.; -#X text 12 415 "receive togui" = change receive-name of object.; -#X text 12 431 "label its_me" = change label-text of object.; -#X text 12 446 "label_pos 20 8" = change offset-coordinates of label-text. -; -#X text 12 461 "label_font 0 10" = change font and fontsize of label-text. -; -#X text 12 340 "steady 1" change slider-knob-behaviour on mouse-click. -; -#X text 13 522 "lin" = change scale-mode of slider to linear.; -#X text 14 537 "log" = change scale-mode of slider to logarithmical. -; -#X text 333 355 to output only the new state.; -#X text 273 84 of sliders and vu in pixels.; -#X text 12 477 "init 1" = change initial loadbang-mode of gui-objects -; -#X text 12 400 "send fromgui" = change send-name of gui-objects \, -; -#X text 12 325 "number 10" = change number of buttons of radio-button. -; -#X text 9 128 "range 0.1 10.0" = change slider-boundaries for; -#X text 344 128 input- as well as output-values.; -#X text 13 492 "set 64" = change only the inner state and display of -gui-; -#X text 11 33 all gui-objects (bng \, hsl \, vsl \, tgl \, rdb \, cnv -and vu); -#X text 9 113 "vis_size 800 600" = change width & height; -#X text 309 113 of visual rectangle of my_canvas in pixels.; -#X text 359 400 except vu and my_canvas.; -#X text 395 477 except vu and cnv.; -#X text 421 492 objects \, except bng and cnv \;; -#X text 85 47 understand input-messages which change their properties. -; -#X text 11 222 "delta 15 17" = move the gui-object in relation to its -; -#X text 397 222 current position (in pixels).; -#X text 333 371 to first release the previous button \,; -#X text 144 385 then output the state of the new button.; -#X text 12 371 "double_change" change radio-button-behaviour; -#X text 12 355 "single_change" change radio-button-behaviour; -#X text 147 507 no output will result.; -#X text 9 99 "size 15" = change square-size of rdb \, bng and tgl; -#X text 9 143 "nonzero 127.0" = change the nonzero-value of toggle. -; -#X text 15 552 "get_pos" = if my_canvas has a receive-name and a send-name -; -#X text 434 552 and you send the; -#X text 272 237 front- and label-color of object with one of 30 presets. -; -#X text 277 252 label-color of vu and my_canvas with one of 30 presets. -; -#X text 504 282 (0 .. 255); -#X text 558 568 coordinates.; -#X text 149 568 message "get_pos" to it \, you receive the current -x- and y-; -#X text 85 59 except cnv has no inlet \, so you have to send messages -; -#X text 85 71 to its receive-label (edit properties).; -#X text 11 237 "color 0 22 22" = change background- \,; -#X text 11 252 "color 0 22" = change background- and; -#X text 13 268 "color -1.67772e+007 (-1) -1" = change background- \, -; -#X text 364 267 (front-) and label-color of object with RGB-values. -; -#X text 149 283 the RGB-value will be calculated: -65536*RED-value -; -#X text 592 309 - 1; -#X text 422 309 - BLUE-value (0 .. 255); -#X text 394 296 - 256*GREEN-value (0 .. 255); -#X restore 294 453 pd messages; -#X obj 225 259 cnv 1 350 1 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 4 308 cnv 1 268 1 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 4 186 cnv 1 220 1 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 225 151 cnv 1 350 1 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 271 261 cnv 1 1 48 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 232 308 cnv 1 1 200 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 339 3 cnv 1 1 149 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 398 260 cnv 1 1 310 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X obj 225 3 cnv 1 1 255 empty empty empty 20 12 2 20 -258699 -66577 -0; -#X floatatom 276 84 4 0 0 0 - - -; -#X obj 239 43 tgl 15 0 empty dsp_tgl empty 20 8 0 10 -370 -262144 -1 -0 1; -#N canvas 145 31 380 506 dsp 0; -#X msg 31 88 \; pd dsp \$1; -#X obj 20 199 cputime; -#X obj 20 178 t b b; -#X text 15 11 dsp; -#X text 48 439 (c) musil@iem.kug.ac.at; -#X text 90 452 IEM KUG; -#X text 59 65 1/0 = ON/OFF; -#X text 97 313 CPU-load; -#X obj 62 126 loadbang; -#X obj 20 126 sel 1; -#X text 65 464 graz \, austria 2001; -#X text 64 12 turn dsp-kernel on & off \,; -#X obj 20 240 t f f; -#X text 65 408 average; -#X text 177 405 peak; -#X obj 211 154 f; -#X obj 146 179 > -1; -#X obj 169 155 f -1; -#X obj 179 91 t f b f; -#X obj 146 204 sel 1; -#X obj 192 132 f -1; -#X obj 20 154 metro 500; -#X obj 20 220 * 0.2; -#X text 74 37 -dsp-load in %; -#X text 65 24 measure average- and peak-; -#X obj 20 315 * 100; -#X obj 20 360 int; -#X obj 20 338 + 0.499; -#X obj 20 383 * 0.01; -#X obj 246 207 r pd; -#X obj 246 231 route dsp; -#X text 245 318 to toggle input; -#X msg 246 283 \; dsp_tgl set \$1; -#X obj 247 341 r dsp_tgl; -#X obj 246 257 route float; -#X obj 146 227 del 3990; -#N canvas 305 120 336 257 once 0; -#X text 7 204 (c) musil@iem.kug.ac.at; -#X text 49 214 IEM KUG; -#X text 24 223 graz \, austria 2001; -#X text 8 6 once; -#X obj 19 150 bang; -#X obj 56 65 f 0; -#X text 59 7 only the first message passes through; -#X obj 19 127 t b a; -#X obj 19 100 spigot; -#X obj 119 63 f 1; -#X obj 119 41 loadbang; -#X obj 19 40 inlet; -#X obj 49 183 outlet; -#X connect 4 0 5 0; -#X connect 5 0 8 1; -#X connect 7 0 4 0; -#X connect 7 1 12 0; -#X connect 8 0 7 0; -#X connect 9 0 8 1; -#X connect 10 0 9 0; -#X connect 11 0 8 0; -#X restore 111 264 pd once; -#N canvas 297 130 530 376 1p1z 0; -#X text 7 315 (c) musil@iem.kug.ac.at; -#X text 52 325 IEM KUG; -#X obj 22 231 +; -#X text 8 6 1p1z; -#X text 24 334 graz \, austria 2001; -#X text 104 22 y[n] = a0*x[n] + a1*x[n-1] + b1*y[n-1]; -#X text 169 53 a0; -#X text 25 34 x[n]; -#X text 24 280 y[n]; -#X text 209 53 a1; -#X text 249 53 b1; -#X obj 284 52 loadbang; -#X text 64 102 x[n-1]; -#X obj 40 205 +; -#X obj 22 133 *; -#X obj 40 160 *; -#X obj 59 182 *; -#X text 82 143 y[n-1]; -#X obj 284 72 t b b b; -#X obj 40 98 f; -#X obj 59 138 f; -#X obj 22 71 t f b b; -#X text 350 63 x[n-1]init; -#X text 429 102 y[n-1]init; -#X text 147 202 1.arg: a0; -#X text 147 213 2.arg: a1; -#X text 147 224 3.arg: b1; -#X text 63 5 control-IIR-filter 1.order; -#X obj 162 115 f 0.1; -#X obj 202 142 f 0; -#X obj 242 164 f 0.9; -#X obj 22 49 inlet; -#X obj 162 71 inlet; -#X obj 202 71 inlet; -#X obj 242 71 inlet; -#X obj 356 80 inlet; -#X obj 431 120 inlet; -#X obj 22 264 outlet; -#X connect 2 0 20 1; -#X connect 2 0 37 0; -#X connect 11 0 18 0; -#X connect 13 0 2 1; -#X connect 14 0 2 0; -#X connect 15 0 13 0; -#X connect 16 0 13 1; -#X connect 18 0 28 0; -#X connect 18 1 29 0; -#X connect 18 2 30 0; -#X connect 19 0 15 0; -#X connect 20 0 16 0; -#X connect 21 0 14 0; -#X connect 21 0 19 1; -#X connect 21 1 19 0; -#X connect 21 2 20 0; -#X connect 28 0 14 1; -#X connect 29 0 15 1; -#X connect 30 0 16 1; -#X connect 31 0 21 0; -#X connect 32 0 28 0; -#X connect 33 0 29 0; -#X connect 34 0 30 0; -#X connect 35 0 19 1; -#X connect 36 0 20 1; -#X restore 20 289 pd 1p1z 0.1 0 0.9; -#X obj 20 65 inlet; -#X obj 20 406 outlet; -#X obj 211 405 outlet; -#X connect 1 0 22 0; -#X connect 2 0 1 0; -#X connect 2 1 1 1; -#X connect 8 0 21 0; -#X connect 9 0 21 0; -#X connect 12 0 37 0; -#X connect 15 0 17 1; -#X connect 15 0 40 0; -#X connect 16 0 19 0; -#X connect 17 0 16 1; -#X connect 18 0 16 0; -#X connect 18 1 17 0; -#X connect 18 2 15 1; -#X connect 19 0 15 0; -#X connect 19 0 35 0; -#X connect 20 0 17 1; -#X connect 21 0 2 0; -#X connect 22 0 12 0; -#X connect 22 0 18 0; -#X connect 25 0 27 0; -#X connect 26 0 28 0; -#X connect 27 0 26 0; -#X connect 28 0 39 0; -#X connect 29 0 30 0; -#X connect 30 0 34 0; -#X connect 34 0 32 0; -#X connect 35 0 20 0; -#X connect 37 0 25 0; -#X connect 38 0 0 0; -#X connect 38 0 9 0; -#X restore 239 63 pd dsp; -#X text 238 99 mean; -#X text 279 100 peak; -#X text 289 63 % cpu; -#X text 283 305 my_canvas = cnv; -#X text 312 172 radiobutton = rdb; -#X text 271 350 R; -#X text 270 370 E; -#X text 270 389 A; -#X text 270 409 D; -#X text 270 428 M; -#X text 269 447 E; -#X connect 17 0 26 0; -#X connect 21 0 18 0; -#X connect 21 0 16 0; -#X connect 21 1 34 0; -#X connect 21 2 19 0; -#X connect 22 0 21 0; -#X connect 27 0 29 0; -#X connect 54 0 55 0; -#X connect 55 0 38 0; -#X connect 55 1 53 0; diff --git a/doc/tutorials/intro/24.turning_on_and_off.pd b/doc/tutorials/intro/24.turning_on_and_off.pd new file mode 100644 index 00000000..24323e6e --- /dev/null +++ b/doc/tutorials/intro/24.turning_on_and_off.pd @@ -0,0 +1,50 @@ +#N canvas 100 227 628 453 12; +#X obj 10 10 cnv 15 400 40 empty empty turning_on_and_off 20 12 0 24 +-228992 -66577 0; +#X obj 160 145 metro 1000; +#X obj 160 122 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X text 183 122 <-- click here; +#X obj 160 171 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 186 171 bangs once a second (1000ms); +#X text 15 371 The object is called [tgl] or you can get it from the +"Put" menu.; +#X text 14 63 Many objects can be switched on and off using a toggle. +A toggle outputs 0 for off \, and an number for on.; +#X text 11 217 By default \, a toggle outputs 1 for on \, but you can +change that to any number by selecting the "Properties" dialog.; +#X obj 33 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X floatatom 33 324 5 0 0 0 - - -; +#X obj 103 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 100 +; +#X floatatom 103 324 5 0 0 0 - - -; +#X obj 173 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 9e-22 +; +#X floatatom 173 324 5 0 0 0 - - -; +#X obj 243 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 -0.034 +; +#X floatatom 243 324 5 0 0 0 - - -; +#X obj 313 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 23 +; +#X floatatom 313 324 5 0 0 0 - - -; +#X obj 383 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 99999 +; +#X floatatom 383 324 5 0 0 0 - - -; +#X obj 453 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X floatatom 453 324 5 0 0 0 - - -; +#X obj 523 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 100 +; +#X floatatom 523 324 5 0 0 0 - - -; +#X connect 1 0 4 0; +#X connect 2 0 1 0; +#X connect 9 0 10 0; +#X connect 11 0 12 0; +#X connect 13 0 14 0; +#X connect 15 0 16 0; +#X connect 17 0 18 0; +#X connect 19 0 20 0; +#X connect 21 0 22 0; +#X connect 23 0 24 0; diff --git a/doc/tutorials/intro/25.gui_objects.pd b/doc/tutorials/intro/25.gui_objects.pd deleted file mode 100644 index 8a75061f..00000000 --- a/doc/tutorials/intro/25.gui_objects.pd +++ /dev/null @@ -1,48 +0,0 @@ -#N canvas 312 62 750 592 10; -#X obj 504 24 import cyclone unauthorized; -#X obj 30 70 bng 15 250 50 0 \$1 \$1 empty 20 8 0 8 -262144 -1 -1; -#X obj 30 102 tgl 15 1.04858e+06 empty \$2 empty 20 8 0 8 -262144 -1 --1 0 1; -#X obj 34 148 vsl 15 128 0 127 0 1.04858e+06 empty \$3 empty 20 8 0 -8 -262144 -1 -1 0 1; -#X obj 191 278 hsl 128 15 0 127 0 0 empty empty empty 20 8 0 8 -262144 --1 -1 0 1; -#X obj 201 249 hdl 15 1 2.6624e+06 8 \$5 \$5 empty 20 8 192 8 -262144 --1 -1 0; -#X obj 254 87 vu 15 120 \$6 empty 35 8 0 8 -66577 -1 1 0; -#X obj 111 69 cnv 15 100 60 empty empty [canvas] 20 12 0 14 -233017 --66577 1.04858e+06; -#X obj 126 149 vdl 15 1 4.79232e+06 8 \$9 \$9 empty 20 8 192 8 -262144 --1 -1 0; -#X obj 341 136 nbx 5 14 -1e+37 1e+37 0 0 \$5 \$5 empty 45 7 0 10 -262144 --1 -1 0 256; -#X text 8 22 Pd comes with a standard \, built-in set of GUI elements -\, which you can select from the "Put" menu.; -#X text 16 323 There are also some OS-native GUI elements available -; -#X obj 44 363 button OK; -#X obj 142 367 popup 124 25 #ffffff popup option; -#X obj 298 363 ticker ; -#X obj 495 419 envgen 200 140 1 0 ; -#X obj 366 499 knob 32 32 0 127 0 0 empty empty empty 0 -8 32 8 -262144 --1 -1 3100 1; -#X text 360 473 [knob]; -#X text 281 340 [ticker]; -#X obj 500 71 grid grid1 200 0 199 200 0 199 1 1 1 10 10 570 188; -#X text 474 51 [unauthorized/grid]; -#X text 475 395 [envgen]; -#X text 112 405 [cyclone/Scope~]; -#X text 23 339 [button]; -#X text 129 341 [popup]; -#X text 250 67 [vu]; -#X text 46 69 [bng]; -#X text 46 101 [tgl]; -#X text 21 280 [vslider]; -#X text 325 248 [hradio]; -#X text 325 278 [hslider]; -#X text 107 277 [vradio]; -#X obj 105 432 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135 -135 135 0; -#X text 337 118 [nbx]; -#X obj 555 305 gcanvas 80 80; -#X text 483 294 [gcanvas]; diff --git a/doc/tutorials/intro/25.properties.pd b/doc/tutorials/intro/25.properties.pd new file mode 100644 index 00000000..a7bbdb81 --- /dev/null +++ b/doc/tutorials/intro/25.properties.pd @@ -0,0 +1,16 @@ +#N canvas 418 177 624 449 12; +#X obj 10 10 cnv 15 400 40 empty empty properties 20 12 0 24 -228992 +-66577 0; +#X obj 260 148 tgl 200 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 +12345; +#X text 13 65 Many objects have properties that affect how the behave +and look. You can see and edit these properties by opening the Properties +panel. Below is a giant toggle. If you right-click on it \, and select +"Properties" \, you can see the properties.; +#X floatatom 260 353 5 0 0 0 - - -; +#X text 18 387 You'll see in the properties panel that "size" is set +to 200 pixels and "value" is set to 12345 \, so the toggle outputs +12345 when its turned on.; +#X text 15 221 right-click on this -->; +#X text 15 240 and select "Properties"; +#X connect 1 0 3 0; diff --git a/doc/tutorials/intro/26.nervous_guis.pd b/doc/tutorials/intro/26.nervous_guis.pd deleted file mode 100644 index 724fed59..00000000 --- a/doc/tutorials/intro/26.nervous_guis.pd +++ /dev/null @@ -1,337 +0,0 @@ -#N canvas 10 40 624 449 12; -#X obj 10 10 cnv 15 400 40 empty empty nervous_guis 20 12 0 24 -228992 --66577 0; -#X obj 486 20 tgl 20 1 empty start_nervously1 start_it 8 -8 0 10 -24198 --1 -250685 0 1; -#X obj 127 179 bng 16 1200 50 0 empty nerv_bng bang 8 -8 0 10 -91120 --252939 -113209; -#X obj 112 346 hsl 116 29 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 -10 -140002 -259981 -172176 2336 1; -#X obj 400 211 tgl 70 1 empty nerv_tgl toggle 8 -8 0 10 -77819 -177692 --11757 0 1; -#X obj 370 329 vsl 8 81 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 10 --55101 -168903 -47444 1998 1; -#N canvas 135 99 386 473 control 0; -#X obj 19 21 inlet; -#X obj 19 50 t b f; -#X obj 19 153 del 900; -#X obj 19 212 del 900; -#X obj 19 93 del 100; -#X obj 19 283 del 900; -#X obj 33 125 f; -#X obj 33 180 f; -#X obj 33 245 f; -#X obj 33 309 f; -#N canvas 280 166 794 432 bng 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 234 368 pack 0 0 0; -#X obj 250 29 metro 2000; -#X obj 445 122 random 555666; -#X obj 445 168 + 8; -#X obj 445 145 % 120; -#X obj 84 32 metro 100; -#X obj 234 261 random 1.67772e+07; -#X obj 266 283 random 1.67772e+07; -#X obj 299 315 random 1.67772e+07; -#X obj 84 11 inlet; -#X msg 64 312 \; nerv_bng delta \$1 \$2; -#X msg 234 390 \; nerv_bng color \$1 \$2 \$3; -#X msg 445 192 \; nerv_bng size \$1; -#X msg 250 51 \; nerv_bng bang; -#X obj 234 340 * -1; -#X obj 266 316 * -1; -#X obj 299 342 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 22 0; -#X connect 11 0 3 0; -#X connect 11 0 14 0; -#X connect 11 0 18 0; -#X connect 11 1 4 0; -#X connect 11 1 19 0; -#X connect 11 2 20 0; -#X connect 12 0 23 0; -#X connect 13 0 25 0; -#X connect 14 0 16 0; -#X connect 15 0 24 0; -#X connect 16 0 15 0; -#X connect 17 0 11 0; -#X connect 18 0 26 0; -#X connect 19 0 27 0; -#X connect 20 0 28 0; -#X connect 21 0 17 0; -#X connect 21 0 13 0; -#X connect 26 0 12 0; -#X connect 27 0 12 1; -#X connect 28 0 12 2; -#X restore 114 143 pd bng; -#N canvas 139 89 794 432 tgl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 445 168 + 8; -#X obj 445 144 % 120; -#X obj 85 31 metro 100; -#X obj 264 28 metro 1000; -#X obj 85 10 inlet; -#X msg 64 312 \; nerv_tgl delta \$1 \$2; -#X msg 226 322 \; nerv_tgl color \$1 \$2 \$3; -#X msg 445 192 \; nerv_tgl size \$1; -#X msg 264 51 \; nerv_tgl bang; -#X obj 226 298 pack 0 0 0; -#X obj 226 191 random 1.67772e+07; -#X obj 258 213 random 1.67772e+07; -#X obj 291 245 random 1.67772e+07; -#X obj 226 270 * -1; -#X obj 258 246 * -1; -#X obj 291 272 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 18 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 23 0; -#X connect 11 1 4 0; -#X connect 11 1 24 0; -#X connect 11 2 25 0; -#X connect 12 0 14 0; -#X connect 13 0 20 0; -#X connect 14 0 13 0; -#X connect 15 0 11 0; -#X connect 16 0 21 0; -#X connect 17 0 15 0; -#X connect 17 0 16 0; -#X connect 22 0 19 0; -#X connect 23 0 26 0; -#X connect 24 0 27 0; -#X connect 25 0 28 0; -#X connect 26 0 22 0; -#X connect 27 0 22 1; -#X connect 28 0 22 2; -#X restore 114 198 pd tgl; -#N canvas 322 99 794 432 hsl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 560 188 + 8; -#X obj 560 128 random 773322; -#X obj 445 208 pack 0 0; -#X obj 84 32 metro 100; -#X obj 561 155 % 30; -#X obj 445 183 + 20; -#X obj 446 149 % 110; -#X obj 254 305 metro 1000; -#X obj 254 327 random 846352; -#X obj 254 350 % 130; -#X obj 84 11 inlet; -#X msg 64 321 \; nerv_hsl delta \$1 \$2; -#X msg 254 373 \; nerv_hsl set \$1; -#X msg 445 231 \; nerv_hsl size \$1 \$2; -#X obj 245 202 pack 0 0 0; -#X obj 245 95 random 1.67772e+07; -#X obj 277 117 random 1.67772e+07; -#X obj 310 149 random 1.67772e+07; -#X obj 245 174 * -1; -#X obj 277 150 * -1; -#X obj 310 176 * -1; -#X msg 245 229 \; nerv_hsl color \$1 \$2 \$3; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 24 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 28 0; -#X connect 11 1 4 0; -#X connect 11 1 14 0; -#X connect 11 1 29 0; -#X connect 11 2 30 0; -#X connect 12 0 19 0; -#X connect 13 0 15 1; -#X connect 14 0 17 0; -#X connect 15 0 26 0; -#X connect 16 0 11 0; -#X connect 17 0 13 0; -#X connect 18 0 15 0; -#X connect 18 0 22 1; -#X connect 19 0 18 0; -#X connect 20 0 21 0; -#X connect 21 0 22 0; -#X connect 22 0 25 0; -#X connect 23 0 16 0; -#X connect 23 0 20 0; -#X connect 27 0 34 0; -#X connect 28 0 31 0; -#X connect 29 0 32 0; -#X connect 30 0 33 0; -#X connect 31 0 27 0; -#X connect 32 0 27 1; -#X connect 33 0 27 2; -#X restore 112 263 pd hsl; -#N canvas 148 132 794 432 vsl 0; -#X obj 114 260 - 0; -#X obj 148 258 f; -#X obj 147 222 t f b; -#X obj 79 122 random 56789; -#X obj 150 165 random 9876; -#X obj 47 236 - 0; -#X obj 81 234 f; -#X obj 80 198 t f b; -#X obj 150 192 % 50; -#X obj 79 145 % 50; -#X obj 64 289 pack 0 0; -#X obj 85 53 t b b b; -#X obj 445 122 random 555666; -#X obj 560 128 random 773322; -#X obj 445 208 pack 0 0; -#X obj 84 32 metro 100; -#X obj 241 299 metro 1000; -#X obj 240 325 random 846352; -#X obj 241 352 % 130; -#X obj 561 155 % 110; -#X obj 560 188 + 20; -#X obj 446 149 % 30; -#X obj 445 183 + 3; -#X obj 84 11 inlet; -#X msg 239 227 \; nerv_vsl color \$1 \$2 \$3; -#X msg 445 231 \; nerv_vsl size \$1 \$2; -#X msg 64 310 \; nerv_vsl delta \$1 \$2; -#X msg 241 376 \; nerv_vsl set \$1; -#X obj 239 203 pack 0 0 0; -#X obj 239 96 random 1.67772e+07; -#X obj 271 118 random 1.67772e+07; -#X obj 304 150 random 1.67772e+07; -#X obj 239 175 * -1; -#X obj 271 151 * -1; -#X obj 304 177 * -1; -#X connect 0 0 10 1; -#X connect 1 0 0 1; -#X connect 2 0 1 1; -#X connect 2 0 0 0; -#X connect 2 1 1 0; -#X connect 3 0 9 0; -#X connect 4 0 8 0; -#X connect 5 0 10 0; -#X connect 6 0 5 1; -#X connect 7 0 6 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 8 0 2 0; -#X connect 9 0 7 0; -#X connect 10 0 26 0; -#X connect 11 0 3 0; -#X connect 11 0 12 0; -#X connect 11 0 29 0; -#X connect 11 1 4 0; -#X connect 11 1 13 0; -#X connect 11 1 30 0; -#X connect 11 2 31 0; -#X connect 12 0 21 0; -#X connect 13 0 19 0; -#X connect 14 0 25 0; -#X connect 15 0 11 0; -#X connect 16 0 17 0; -#X connect 17 0 18 0; -#X connect 18 0 27 0; -#X connect 19 0 20 0; -#X connect 20 0 14 1; -#X connect 20 0 18 1; -#X connect 21 0 22 0; -#X connect 22 0 14 0; -#X connect 23 0 15 0; -#X connect 23 0 16 0; -#X connect 28 0 24 0; -#X connect 29 0 32 0; -#X connect 30 0 33 0; -#X connect 31 0 34 0; -#X connect 32 0 28 0; -#X connect 33 0 28 1; -#X connect 34 0 28 2; -#X restore 113 327 pd vsl; -#X connect 0 0 1 0; -#X connect 1 0 4 0; -#X connect 1 1 6 1; -#X connect 1 1 7 1; -#X connect 1 1 8 1; -#X connect 1 1 9 1; -#X connect 2 0 3 0; -#X connect 2 0 7 0; -#X connect 3 0 5 0; -#X connect 3 0 8 0; -#X connect 4 0 2 0; -#X connect 4 0 6 0; -#X connect 5 0 9 0; -#X connect 6 0 10 0; -#X connect 7 0 11 0; -#X connect 8 0 12 0; -#X connect 9 0 13 0; -#X restore 486 46 pd control; -#X text 17 88 You can dynamically control just about everything about -most GUI objects.; -#X connect 1 0 6 0; diff --git a/doc/tutorials/intro/26.sliders.pd b/doc/tutorials/intro/26.sliders.pd new file mode 100644 index 00000000..0fb0ff23 --- /dev/null +++ b/doc/tutorials/intro/26.sliders.pd @@ -0,0 +1,42 @@ +#N canvas 52 115 624 449 12; +#X obj 10 10 cnv 15 400 40 empty empty sliders 20 12 0 24 -228992 -66577 +0; +#X obj 120 105 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144 +-1 -1 0 1; +#X floatatom 120 247 5 0 0 0 - - -; +#X obj 338 106 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 +-1 -1 0 1; +#X floatatom 338 248 5 0 0 0 - - -; +#X floatatom 230 412 5 0 0 0 - - -; +#X msg 333 349 1000; +#X msg 248 349 100; +#X msg 204 349 60; +#X msg 290 349 127; +#X text 9 61 Sliders are generally useful for controlling things over +a range of numbers \, like a color or loudness.; +#X text 144 130 by default \,; +#X text 144 152 they range; +#X text 142 174 from 0 to 127; +#X text 363 138 0 to 1 is a; +#X text 361 160 commonly used; +#X text 361 181 range; +#X obj 234 389 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 +-1 -1 0 1; +#X msg 162 349 0; +#X msg 117 349 -23; +#X text 16 276 They act very similarly to number boxes \, except they +show their value graphically rather that with numbers. One difference +is that sliders always limit the range of numbers that can pass thru: +; +#X obj 211 413 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X connect 1 0 2 0; +#X connect 3 0 4 0; +#X connect 6 0 17 0; +#X connect 7 0 17 0; +#X connect 8 0 17 0; +#X connect 9 0 17 0; +#X connect 17 0 5 0; +#X connect 17 0 21 0; +#X connect 18 0 17 0; +#X connect 19 0 17 0; diff --git a/doc/tutorials/intro/27.guis.pd b/doc/tutorials/intro/27.guis.pd new file mode 100644 index 00000000..ca08bb3a --- /dev/null +++ b/doc/tutorials/intro/27.guis.pd @@ -0,0 +1,813 @@ +#N canvas 153 19 568 572 10; +#X obj -4 -4 cnv 15 600 700 empty empty gui-INTRO 237 20 2 14 -261819 +-143491 0; +#X text 101 4 bng; +#X obj 456 313 vsl 15 128 0 127 0 0 empty empty default_15x128 8 -8 +0 8 -262144 -1 -1 0 1; +#X obj 354 42 tgl 100 1 empty empty 100_pix 8 -8 0 8 -250685 -24198 +-42246 1 1; +#X obj 57 251 hsl 128 15 0 127 0 0 empty empty default_128x15 8 -8 +0 8 -262144 -1 -1 0 1; +#X obj 78 226 hsl 20 8 0 19 0 0 empty empty min_20x8 8 -8 0 8 -262144 +-1 -1 0 1; +#X obj 478 326 vsl 8 20 0 19 0 0 empty empty min_8x20 8 -8 0 8 -262144 +-1 -1 0 1; +#X obj 458 48 tgl 8 0 empty empty min_8 8 -8 0 8 -262144 -1 -1 0 1 +; +#X obj 458 71 tgl 15 0 empty empty default_15 8 -8 0 8 -262144 -1 -1 +0 1; +#X obj 459 109 tgl 30 0 empty empty 30_pix 8 -8 0 8 -262144 -1 -1 0 +1; +#X obj 101 88 bng 30 250 50 0 empty empty 30_pix 8 -8 0 8 -262144 -1 +-1; +#X obj 412 304 vsl 30 250 0 249 0 1 empty empty 30x250 8 -8 0 8 -184301 +-42886 -42246 21800 1; +#X obj 7 271 hsl 251 30 0 250 0 1 empty empty 251x30 8 -8 0 8 -147456 +-1109 -66577 12500 1; +#X text 180 518 (c) musil@iem.kug.ac.at; +#X text 222 531 IEM KUG; +#X text 197 543 graz \, austria 2001; +#X obj 40 343 vu 25 200 empty empty 8 -8 0 8 -1 -99865 1 0; +#X obj 13 24 bng 75 5000 25 1 empty empty 75pix+init 8 -8 0 8 -262131 +-261458 -123526; +#X obj 100 376 vu 15 120 empty empty 8 -8 0 8 -66577 -1 1 0; +#X obj 186 375 vu 10 80 empty empty 8 -8 0 8 -66577 -1 1 0; +#X text 99 313 vu; +#N canvas 438 180 374 414 animate_vu 0; +#X obj 40 211 t f f; +#X obj 65 233 + 6; +#X obj 40 257 pack 0 0; +#X obj 78 94 tgl 15 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0 1 +; +#X obj 78 115 sel 0 1; +#X obj 78 74 metro 4000; +#X msg 100 137 30 3000; +#X msg 78 167 -130 3000; +#X obj 40 189 line -130 50; +#X obj 78 51 inlet; +#X obj 40 316 outlet; +#X obj 87 316 outlet; +#X obj 134 316 outlet; +#X connect 0 0 2 0; +#X connect 0 1 1 0; +#X connect 1 0 2 1; +#X connect 2 0 10 0; +#X connect 2 0 11 0; +#X connect 2 0 12 0; +#X connect 3 0 4 0; +#X connect 4 0 7 0; +#X connect 4 1 6 0; +#X connect 5 0 3 0; +#X connect 6 0 8 0; +#X connect 7 0 8 0; +#X connect 8 0 0 0; +#X connect 9 0 5 0; +#X restore 99 349 pd animate_vu; +#X obj 99 331 tgl 15 1 empty empty empty 8 -8 0 10 -262144 -1 -1 1 +1; +#X text 360 8 toggle = tgl; +#X text 68 198 hslider = hsl; +#X text 430 271 vslider = vsl; +#X obj 13 160 print initial_bang; +#X obj 21 118 bng 15 250 50 0 empty empty default_15 8 -8 0 8 -262144 +-1 -1; +#X obj 104 48 bng 8 250 50 0 empty empty min_8 8 -8 0 10 -262144 -1 +-1; +#X obj 21 137 print no_initial_bang; +#X obj 283 324 cnv 15 100 30 empty empty empty 20 12 2 20 -225271 -66577 +0; +#X obj 283 355 cnv 15 100 30 empty empty empty 20 12 2 20 -225280 -66577 +0; +#X obj 283 386 cnv 15 100 30 empty empty empty 20 12 2 20 -261681 -66577 +0; +#X obj 283 417 cnv 15 100 30 empty empty empty 20 12 2 20 -257472 -66577 +0; +#X obj 172 375 vu 10 80 empty empty 8 -8 0 8 -66577 -1 0 0; +#X obj 310 203 hradio 15 1 1 8 empty empty default_8*15 8 -8 0 8 -262144 +-1 -1 2; +#X obj 254 223 hradio 25 1 1 12 empty empty 12*25 8 -8 0 8 -1433 -225280 +-355 1; +#N canvas 179 78 690 573 nervous 0; +#X obj 10 23 tgl 55 1 empty start_nervously1 start_it 8 -8 0 10 -260818 +-1 -250685 0 1; +#X obj 131 141 bng 51 1200 50 0 empty nerv_bng bang 8 -8 0 10 -253378 +-137031 -222091; +#X obj 120 418 hsl 22 12 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 10 +-71033 -66198 -128091 0 1; +#X obj 448 140 tgl 11 1 empty nerv_tgl toggle 8 -8 0 10 -141355 -82199 +-51488 0 1; +#X obj 447 383 vsl 15 111 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 +10 -150187 -73940 -248863 0 1; +#N canvas 135 99 382 469 control 0; +#X obj 19 21 inlet; +#X obj 19 50 t b f; +#X obj 19 153 del 900; +#X obj 19 212 del 900; +#X obj 19 93 del 100; +#X obj 19 283 del 900; +#X obj 33 125 f; +#X obj 33 180 f; +#X obj 33 245 f; +#X obj 33 309 f; +#N canvas 280 166 794 432 bng 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 234 368 pack 0 0 0; +#X obj 250 29 metro 2000; +#X obj 445 122 random 555666; +#X obj 445 168 + 8; +#X obj 445 145 % 120; +#X obj 84 32 metro 100; +#X obj 234 261 random 1.67772e+007; +#X obj 266 283 random 1.67772e+007; +#X obj 299 315 random 1.67772e+007; +#X obj 84 11 inlet; +#X msg 64 312 \; nerv_bng delta \$1 \$2; +#X msg 234 390 \; nerv_bng color \$1 \$2 \$3; +#X msg 445 192 \; nerv_bng size \$1; +#X msg 250 51 \; nerv_bng bang; +#X obj 234 340 * -1; +#X obj 266 316 * -1; +#X obj 299 342 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 22 0; +#X connect 11 0 3 0; +#X connect 11 0 14 0; +#X connect 11 0 18 0; +#X connect 11 1 4 0; +#X connect 11 1 19 0; +#X connect 11 2 20 0; +#X connect 12 0 23 0; +#X connect 13 0 25 0; +#X connect 14 0 16 0; +#X connect 15 0 24 0; +#X connect 16 0 15 0; +#X connect 17 0 11 0; +#X connect 18 0 26 0; +#X connect 19 0 27 0; +#X connect 20 0 28 0; +#X connect 21 0 17 0; +#X connect 21 0 13 0; +#X connect 26 0 12 0; +#X connect 27 0 12 1; +#X connect 28 0 12 2; +#X restore 114 143 pd bng; +#N canvas 139 89 794 432 tgl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 445 168 + 8; +#X obj 445 144 % 120; +#X obj 85 31 metro 100; +#X obj 264 28 metro 1000; +#X obj 85 10 inlet; +#X msg 64 312 \; nerv_tgl delta \$1 \$2; +#X msg 226 322 \; nerv_tgl color \$1 \$2 \$3; +#X msg 445 192 \; nerv_tgl size \$1; +#X msg 264 51 \; nerv_tgl bang; +#X obj 226 298 pack 0 0 0; +#X obj 226 191 random 1.67772e+007; +#X obj 258 213 random 1.67772e+007; +#X obj 291 245 random 1.67772e+007; +#X obj 226 270 * -1; +#X obj 258 246 * -1; +#X obj 291 272 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 18 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 23 0; +#X connect 11 1 4 0; +#X connect 11 1 24 0; +#X connect 11 2 25 0; +#X connect 12 0 14 0; +#X connect 13 0 20 0; +#X connect 14 0 13 0; +#X connect 15 0 11 0; +#X connect 16 0 21 0; +#X connect 17 0 15 0; +#X connect 17 0 16 0; +#X connect 22 0 19 0; +#X connect 23 0 26 0; +#X connect 24 0 27 0; +#X connect 25 0 28 0; +#X connect 26 0 22 0; +#X connect 27 0 22 1; +#X connect 28 0 22 2; +#X restore 114 198 pd tgl; +#N canvas 322 99 794 432 hsl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 560 188 + 8; +#X obj 560 128 random 773322; +#X obj 445 208 pack 0 0; +#X obj 84 32 metro 100; +#X obj 561 155 % 30; +#X obj 445 183 + 20; +#X obj 446 149 % 110; +#X obj 254 305 metro 1000; +#X obj 254 327 random 846352; +#X obj 254 350 % 130; +#X obj 84 11 inlet; +#X msg 64 321 \; nerv_hsl delta \$1 \$2; +#X msg 254 373 \; nerv_hsl set \$1; +#X msg 445 231 \; nerv_hsl size \$1 \$2; +#X obj 245 202 pack 0 0 0; +#X obj 245 95 random 1.67772e+007; +#X obj 277 117 random 1.67772e+007; +#X obj 310 149 random 1.67772e+007; +#X obj 245 174 * -1; +#X obj 277 150 * -1; +#X obj 310 176 * -1; +#X msg 245 229 \; nerv_hsl color \$1 \$2 \$3; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 24 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 28 0; +#X connect 11 1 4 0; +#X connect 11 1 14 0; +#X connect 11 1 29 0; +#X connect 11 2 30 0; +#X connect 12 0 19 0; +#X connect 13 0 15 1; +#X connect 14 0 17 0; +#X connect 15 0 26 0; +#X connect 16 0 11 0; +#X connect 17 0 13 0; +#X connect 18 0 15 0; +#X connect 18 0 22 1; +#X connect 19 0 18 0; +#X connect 20 0 21 0; +#X connect 21 0 22 0; +#X connect 22 0 25 0; +#X connect 23 0 16 0; +#X connect 23 0 20 0; +#X connect 27 0 34 0; +#X connect 28 0 31 0; +#X connect 29 0 32 0; +#X connect 30 0 33 0; +#X connect 31 0 27 0; +#X connect 32 0 27 1; +#X connect 33 0 27 2; +#X restore 112 263 pd hsl; +#N canvas 148 132 794 432 vsl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 560 128 random 773322; +#X obj 445 208 pack 0 0; +#X obj 84 32 metro 100; +#X obj 241 299 metro 1000; +#X obj 240 325 random 846352; +#X obj 241 352 % 130; +#X obj 561 155 % 110; +#X obj 560 188 + 20; +#X obj 446 149 % 30; +#X obj 445 183 + 3; +#X obj 84 11 inlet; +#X msg 239 227 \; nerv_vsl color \$1 \$2 \$3; +#X msg 445 231 \; nerv_vsl size \$1 \$2; +#X msg 64 310 \; nerv_vsl delta \$1 \$2; +#X msg 241 376 \; nerv_vsl set \$1; +#X obj 239 203 pack 0 0 0; +#X obj 239 96 random 1.67772e+007; +#X obj 271 118 random 1.67772e+007; +#X obj 304 150 random 1.67772e+007; +#X obj 239 175 * -1; +#X obj 271 151 * -1; +#X obj 304 177 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 26 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 29 0; +#X connect 11 1 4 0; +#X connect 11 1 13 0; +#X connect 11 1 30 0; +#X connect 11 2 31 0; +#X connect 12 0 21 0; +#X connect 13 0 19 0; +#X connect 14 0 25 0; +#X connect 15 0 11 0; +#X connect 16 0 17 0; +#X connect 17 0 18 0; +#X connect 18 0 27 0; +#X connect 19 0 20 0; +#X connect 20 0 14 1; +#X connect 20 0 18 1; +#X connect 21 0 22 0; +#X connect 22 0 14 0; +#X connect 23 0 15 0; +#X connect 23 0 16 0; +#X connect 28 0 24 0; +#X connect 29 0 32 0; +#X connect 30 0 33 0; +#X connect 31 0 34 0; +#X connect 32 0 28 0; +#X connect 33 0 28 1; +#X connect 34 0 28 2; +#X restore 113 327 pd vsl; +#X connect 0 0 1 0; +#X connect 1 0 4 0; +#X connect 1 1 6 1; +#X connect 1 1 7 1; +#X connect 1 1 8 1; +#X connect 1 1 9 1; +#X connect 2 0 3 0; +#X connect 2 0 7 0; +#X connect 3 0 5 0; +#X connect 3 0 8 0; +#X connect 4 0 2 0; +#X connect 4 0 6 0; +#X connect 5 0 9 0; +#X connect 6 0 10 0; +#X connect 7 0 11 0; +#X connect 8 0 12 0; +#X connect 9 0 13 0; +#X restore 10 85 pd control; +#X connect 0 0 5 0; +#X restore 295 424 pd nervous; +#X floatatom 239 84 4 0 0 0 - - -; +#N canvas 226 38 811 519 properties 0; +#X obj 2 1 cnv 8 870 590 empty empty about_gui_properties 290 20 2 +18 -225280 -1109 0; +#X text 12 62 "selectable dimensions(pix): size:" = square-size of +the; +#X text 10 35 "dimensions(pix): size:" = square-size of the gui-objects +; +#X text 10 48 "dimensions(pix)(pix): width: height:" = width & height +; +#X text 11 177 "visible_rectangle(pix)(pix): width: height:" = width +&; +#X text 11 104 "flash-time(ms)(ms): intrrpt:" = flash-interrupt-time +; +#X text 411 62 selectable top-left corner of my_canvas in pixels.; +#X text 415 35 in pixels.; +#X text 11 76 "flash-time(ms)(ms): hold:" = flash-hold-time in msec +=; +#X text 405 76 duration of activity \, if a bang-object was activated +; +#X text 400 48 of the rectangular gui-object in pixels.; +#X text 402 177 height of a visible \, deactivated rectangle in pixels. +; +#X text 14 224 "new&old" or "new-only" = the radiobutton-object changes +its; +#X text 441 224 state in 2 ways:; +#X text 198 237 "new&old"-mode: output sends previous state off \, +current; +#X text 596 237 state on \;; +#X text 197 250 "new-only"-mode: output sends only current state on. +; +#X text 14 280 "steady on click" or "jump on click" = the 2 slider-objects +; +#X text 481 322 immediately to new mouse-position \,; +#X text 12 413 "label: font: fontsize:" = font-properties of label. +; +#X text 15 429 "colors:" = a click on radiobuttons "background:" \, +; +#X text 370 429 "front-color:" or "label-color:" activates the color-fields +; +#X text 174 193 if "init"-mode is selected \, the object displays and +puts; +#X text 15 266 "number:" = number of buttons of a radiobutton.; +#X text 205 89 by any message-event or by a mouse-click.; +#X text 388 104 in msec = duration of inactivity \, if an already; +#X text 205 117 activated bang is activated once more.; +#X text 11 132 "output-range: left: right:" = hslider-bounds; +#X text 332 132 for input- as well as output-values.; +#X text 332 146 for input- as well as output-values.; +#X text 11 146 "output-range: bottom: top:" = vslider-bounds; +#X text 12 193 "init" or "no init" =; +#X text 571 193 out its previously saved value.; +#X text 174 208 if "no init"-mode is selected \, nothing will happen. +; +#X text 433 280 react to mouse-click in 2 ways:; +#X text 201 294 "steady on click"-mode: slider-knob stays in position +\,; +#X text 225 307 mouse and knob will move parallel \;; +#X text 200 322 "jump on click"-mode: slider-knob jumps; +#X text 224 338 positions of mouse and knob will be identical \;; +#X text 402 353 receive-object with the same send-symbol-name.; +#X text 11 368 "receive-symbol:" = a send-object with the same; +#X text 11 353 "send-symbol:" = an output-message can be received by +a; +#X text 347 368 symbol-name can send an input-message to the gui-object. +; +#X text 13 383 "label: name:" = visible name of a gui-object \;; +#X text 343 383 it will be moved together with the gui-object.; +#X text 12 397 "label: x_off: y_off:" = coordinates of the label in +; +#X text 382 397 relation to top-left corner of gui-object.; +#X text 207 444 on the right side which display the current color of +the; +#X text 605 444 item \;; +#X text 11 161 "non-zero-value: value:" = toggle has 2; +#X text 292 161 value-states: zero and this value.; +#X text 208 460 to select a different color \, click on one of the +30 small; +#X text 614 459 preset-color-buttons \;; +#X text 208 475 each color (background \, front \, label) can be tuned +by its; +#X text 235 490 RGB-values (0 .. 252 \, step 4) and a click on the +set-button.; +#X restore 287 361 pd properties; +#N canvas 146 190 460 120 move 0; +#X obj 0 0 cnv 8 460 120 empty empty how_to_move_gui_objects 100 18 +2 20 -225271 -42246 0; +#X text 11 43 Select a gui-object \, then navigate the object by using +the 4 direction-keys: UP \, DOWN \, LEFT or RIGHT.; +#X text 12 70 If you press the SHIFT-Key too \, the object will move +10 times faster.; +#X restore 308 331 pd move; +#N canvas 151 38 522 451 dollar 0; +#X obj 0 0 cnv 8 560 160 empty empty the_dollar_thing 100 18 2 20 -261681 +-123526 0; +#X text 10 39 if you want to send to \, or to receive from gui-objects +; +#X text 394 39 in abstractions \,; +#X text 36 52 you have to write into the property-entry:; +#X text 44 67 #1-label (instead of \$1-label).; +#X text 25 103 type #0-uniquelabel (instead of \$0-uniquelabel).; +#X text 9 88 if you want a unique send-receive-symbolname:; +#X restore 299 391 pd dollar; +#X obj 283 448 cnv 15 100 30 empty empty empty 20 12 2 20 -228992 -66577 +0; +#N canvas 177 21 730 638 messages 0; +#X obj 1 1 cnv 8 870 640 empty empty about_gui_messages 200 20 2 18 +-228992 -355 0; +#X text 366 99 in pixels.; +#X text 9 84 "size 15 128" = change width & height; +#X text 9 159 "flashtime 50 600" = change flash-interrupt- and flash-hold +; +#X text 424 160 -time of bng-object.; +#X text 9 174 "pos 150 170" = change the x-y-position of the top-left +; +#X text 400 173 corner of a gui-object in pixels \;; +#X text 139 188 "pos 0 0" is the top-left corner of your window \; +; +#X text 143 204 the positive directions of x- and y-axes are right +and down.; +#X text 12 415 "receive togui" = change receive-name of object.; +#X text 12 431 "label its_me" = change label-text of object.; +#X text 12 446 "label_pos 20 8" = change offset-coordinates of label-text. +; +#X text 12 461 "label_font 0 10" = change font and fontsize of label-text. +; +#X text 12 340 "steady 1" change slider-knob-behaviour on mouse-click. +; +#X text 13 522 "lin" = change scale-mode of slider to linear.; +#X text 14 537 "log" = change scale-mode of slider to logarithmical. +; +#X text 333 355 to output only the new state.; +#X text 273 84 of sliders and vu in pixels.; +#X text 12 477 "init 1" = change initial loadbang-mode of gui-objects +; +#X text 12 400 "send fromgui" = change send-name of gui-objects \, +; +#X text 12 325 "number 10" = change number of buttons of radio-button. +; +#X text 9 128 "range 0.1 10.0" = change slider-boundaries for; +#X text 344 128 input- as well as output-values.; +#X text 13 492 "set 64" = change only the inner state and display of +gui-; +#X text 11 33 all gui-objects (bng \, hsl \, vsl \, tgl \, rdb \, cnv +and vu); +#X text 9 113 "vis_size 800 600" = change width & height; +#X text 309 113 of visual rectangle of my_canvas in pixels.; +#X text 359 400 except vu and my_canvas.; +#X text 395 477 except vu and cnv.; +#X text 421 492 objects \, except bng and cnv \;; +#X text 85 47 understand input-messages which change their properties. +; +#X text 11 222 "delta 15 17" = move the gui-object in relation to its +; +#X text 397 222 current position (in pixels).; +#X text 333 371 to first release the previous button \,; +#X text 144 385 then output the state of the new button.; +#X text 12 371 "double_change" change radio-button-behaviour; +#X text 12 355 "single_change" change radio-button-behaviour; +#X text 147 507 no output will result.; +#X text 9 99 "size 15" = change square-size of rdb \, bng and tgl; +#X text 9 143 "nonzero 127.0" = change the nonzero-value of toggle. +; +#X text 15 552 "get_pos" = if my_canvas has a receive-name and a send-name +; +#X text 434 552 and you send the; +#X text 272 237 front- and label-color of object with one of 30 presets. +; +#X text 277 252 label-color of vu and my_canvas with one of 30 presets. +; +#X text 504 282 (0 .. 255); +#X text 558 568 coordinates.; +#X text 149 568 message "get_pos" to it \, you receive the current +x- and y-; +#X text 85 59 except cnv has no inlet \, so you have to send messages +; +#X text 85 71 to its receive-label (edit properties).; +#X text 11 237 "color 0 22 22" = change background- \,; +#X text 11 252 "color 0 22" = change background- and; +#X text 13 268 "color -1.67772e+007 (-1) -1" = change background- \, +; +#X text 364 267 (front-) and label-color of object with RGB-values. +; +#X text 149 283 the RGB-value will be calculated: -65536*RED-value +; +#X text 592 309 - 1; +#X text 422 309 - BLUE-value (0 .. 255); +#X text 394 296 - 256*GREEN-value (0 .. 255); +#X restore 294 453 pd messages; +#X obj 225 259 cnv 1 350 1 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 4 308 cnv 1 268 1 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 4 186 cnv 1 220 1 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 225 151 cnv 1 350 1 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 271 261 cnv 1 1 48 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 232 308 cnv 1 1 200 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 339 3 cnv 1 1 149 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 398 260 cnv 1 1 310 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X obj 225 3 cnv 1 1 255 empty empty empty 20 12 2 20 -258699 -66577 +0; +#X floatatom 276 84 4 0 0 0 - - -; +#X obj 239 43 tgl 15 0 empty dsp_tgl empty 20 8 0 10 -370 -262144 -1 +0 1; +#N canvas 145 31 380 506 dsp 0; +#X msg 31 88 \; pd dsp \$1; +#X obj 20 199 cputime; +#X obj 20 178 t b b; +#X text 15 11 dsp; +#X text 48 439 (c) musil@iem.kug.ac.at; +#X text 90 452 IEM KUG; +#X text 59 65 1/0 = ON/OFF; +#X text 97 313 CPU-load; +#X obj 62 126 loadbang; +#X obj 20 126 sel 1; +#X text 65 464 graz \, austria 2001; +#X text 64 12 turn dsp-kernel on & off \,; +#X obj 20 240 t f f; +#X text 65 408 average; +#X text 177 405 peak; +#X obj 211 154 f; +#X obj 146 179 > -1; +#X obj 169 155 f -1; +#X obj 179 91 t f b f; +#X obj 146 204 sel 1; +#X obj 192 132 f -1; +#X obj 20 154 metro 500; +#X obj 20 220 * 0.2; +#X text 74 37 -dsp-load in %; +#X text 65 24 measure average- and peak-; +#X obj 20 315 * 100; +#X obj 20 360 int; +#X obj 20 338 + 0.499; +#X obj 20 383 * 0.01; +#X obj 246 207 r pd; +#X obj 246 231 route dsp; +#X text 245 318 to toggle input; +#X msg 246 283 \; dsp_tgl set \$1; +#X obj 247 341 r dsp_tgl; +#X obj 246 257 route float; +#X obj 146 227 del 3990; +#N canvas 305 120 336 257 once 0; +#X text 7 204 (c) musil@iem.kug.ac.at; +#X text 49 214 IEM KUG; +#X text 24 223 graz \, austria 2001; +#X text 8 6 once; +#X obj 19 150 bang; +#X obj 56 65 f 0; +#X text 59 7 only the first message passes through; +#X obj 19 127 t b a; +#X obj 19 100 spigot; +#X obj 119 63 f 1; +#X obj 119 41 loadbang; +#X obj 19 40 inlet; +#X obj 49 183 outlet; +#X connect 4 0 5 0; +#X connect 5 0 8 1; +#X connect 7 0 4 0; +#X connect 7 1 12 0; +#X connect 8 0 7 0; +#X connect 9 0 8 1; +#X connect 10 0 9 0; +#X connect 11 0 8 0; +#X restore 111 264 pd once; +#N canvas 297 130 530 376 1p1z 0; +#X text 7 315 (c) musil@iem.kug.ac.at; +#X text 52 325 IEM KUG; +#X obj 22 231 +; +#X text 8 6 1p1z; +#X text 24 334 graz \, austria 2001; +#X text 104 22 y[n] = a0*x[n] + a1*x[n-1] + b1*y[n-1]; +#X text 169 53 a0; +#X text 25 34 x[n]; +#X text 24 280 y[n]; +#X text 209 53 a1; +#X text 249 53 b1; +#X obj 284 52 loadbang; +#X text 64 102 x[n-1]; +#X obj 40 205 +; +#X obj 22 133 *; +#X obj 40 160 *; +#X obj 59 182 *; +#X text 82 143 y[n-1]; +#X obj 284 72 t b b b; +#X obj 40 98 f; +#X obj 59 138 f; +#X obj 22 71 t f b b; +#X text 350 63 x[n-1]init; +#X text 429 102 y[n-1]init; +#X text 147 202 1.arg: a0; +#X text 147 213 2.arg: a1; +#X text 147 224 3.arg: b1; +#X text 63 5 control-IIR-filter 1.order; +#X obj 162 115 f 0.1; +#X obj 202 142 f 0; +#X obj 242 164 f 0.9; +#X obj 22 49 inlet; +#X obj 162 71 inlet; +#X obj 202 71 inlet; +#X obj 242 71 inlet; +#X obj 356 80 inlet; +#X obj 431 120 inlet; +#X obj 22 264 outlet; +#X connect 2 0 20 1; +#X connect 2 0 37 0; +#X connect 11 0 18 0; +#X connect 13 0 2 1; +#X connect 14 0 2 0; +#X connect 15 0 13 0; +#X connect 16 0 13 1; +#X connect 18 0 28 0; +#X connect 18 1 29 0; +#X connect 18 2 30 0; +#X connect 19 0 15 0; +#X connect 20 0 16 0; +#X connect 21 0 14 0; +#X connect 21 0 19 1; +#X connect 21 1 19 0; +#X connect 21 2 20 0; +#X connect 28 0 14 1; +#X connect 29 0 15 1; +#X connect 30 0 16 1; +#X connect 31 0 21 0; +#X connect 32 0 28 0; +#X connect 33 0 29 0; +#X connect 34 0 30 0; +#X connect 35 0 19 1; +#X connect 36 0 20 1; +#X restore 20 289 pd 1p1z 0.1 0 0.9; +#X obj 20 65 inlet; +#X obj 20 406 outlet; +#X obj 211 405 outlet; +#X connect 1 0 22 0; +#X connect 2 0 1 0; +#X connect 2 1 1 1; +#X connect 8 0 21 0; +#X connect 9 0 21 0; +#X connect 12 0 37 0; +#X connect 15 0 17 1; +#X connect 15 0 40 0; +#X connect 16 0 19 0; +#X connect 17 0 16 1; +#X connect 18 0 16 0; +#X connect 18 1 17 0; +#X connect 18 2 15 1; +#X connect 19 0 15 0; +#X connect 19 0 35 0; +#X connect 20 0 17 1; +#X connect 21 0 2 0; +#X connect 22 0 12 0; +#X connect 22 0 18 0; +#X connect 25 0 27 0; +#X connect 26 0 28 0; +#X connect 27 0 26 0; +#X connect 28 0 39 0; +#X connect 29 0 30 0; +#X connect 30 0 34 0; +#X connect 34 0 32 0; +#X connect 35 0 20 0; +#X connect 37 0 25 0; +#X connect 38 0 0 0; +#X connect 38 0 9 0; +#X restore 239 63 pd dsp; +#X text 238 99 mean; +#X text 279 100 peak; +#X text 289 63 % cpu; +#X text 283 305 my_canvas = cnv; +#X text 312 172 radiobutton = rdb; +#X text 271 350 R; +#X text 270 370 E; +#X text 270 389 A; +#X text 270 409 D; +#X text 270 428 M; +#X text 269 447 E; +#X connect 17 0 26 0; +#X connect 21 0 18 0; +#X connect 21 0 16 0; +#X connect 21 1 34 0; +#X connect 21 2 19 0; +#X connect 22 0 21 0; +#X connect 27 0 29 0; +#X connect 54 0 55 0; +#X connect 55 0 38 0; +#X connect 55 1 53 0; diff --git a/doc/tutorials/intro/28.gui_objects.pd b/doc/tutorials/intro/28.gui_objects.pd new file mode 100644 index 00000000..8a75061f --- /dev/null +++ b/doc/tutorials/intro/28.gui_objects.pd @@ -0,0 +1,48 @@ +#N canvas 312 62 750 592 10; +#X obj 504 24 import cyclone unauthorized; +#X obj 30 70 bng 15 250 50 0 \$1 \$1 empty 20 8 0 8 -262144 -1 -1; +#X obj 30 102 tgl 15 1.04858e+06 empty \$2 empty 20 8 0 8 -262144 -1 +-1 0 1; +#X obj 34 148 vsl 15 128 0 127 0 1.04858e+06 empty \$3 empty 20 8 0 +8 -262144 -1 -1 0 1; +#X obj 191 278 hsl 128 15 0 127 0 0 empty empty empty 20 8 0 8 -262144 +-1 -1 0 1; +#X obj 201 249 hdl 15 1 2.6624e+06 8 \$5 \$5 empty 20 8 192 8 -262144 +-1 -1 0; +#X obj 254 87 vu 15 120 \$6 empty 35 8 0 8 -66577 -1 1 0; +#X obj 111 69 cnv 15 100 60 empty empty [canvas] 20 12 0 14 -233017 +-66577 1.04858e+06; +#X obj 126 149 vdl 15 1 4.79232e+06 8 \$9 \$9 empty 20 8 192 8 -262144 +-1 -1 0; +#X obj 341 136 nbx 5 14 -1e+37 1e+37 0 0 \$5 \$5 empty 45 7 0 10 -262144 +-1 -1 0 256; +#X text 8 22 Pd comes with a standard \, built-in set of GUI elements +\, which you can select from the "Put" menu.; +#X text 16 323 There are also some OS-native GUI elements available +; +#X obj 44 363 button OK; +#X obj 142 367 popup 124 25 #ffffff popup option; +#X obj 298 363 ticker ; +#X obj 495 419 envgen 200 140 1 0 ; +#X obj 366 499 knob 32 32 0 127 0 0 empty empty empty 0 -8 32 8 -262144 +-1 -1 3100 1; +#X text 360 473 [knob]; +#X text 281 340 [ticker]; +#X obj 500 71 grid grid1 200 0 199 200 0 199 1 1 1 10 10 570 188; +#X text 474 51 [unauthorized/grid]; +#X text 475 395 [envgen]; +#X text 112 405 [cyclone/Scope~]; +#X text 23 339 [button]; +#X text 129 341 [popup]; +#X text 250 67 [vu]; +#X text 46 69 [bng]; +#X text 46 101 [tgl]; +#X text 21 280 [vslider]; +#X text 325 248 [hradio]; +#X text 325 278 [hslider]; +#X text 107 277 [vradio]; +#X obj 105 432 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135 +135 135 0; +#X text 337 118 [nbx]; +#X obj 555 305 gcanvas 80 80; +#X text 483 294 [gcanvas]; diff --git a/doc/tutorials/intro/29.nervous_guis.pd b/doc/tutorials/intro/29.nervous_guis.pd new file mode 100644 index 00000000..dff9fac2 --- /dev/null +++ b/doc/tutorials/intro/29.nervous_guis.pd @@ -0,0 +1,337 @@ +#N canvas 10 40 632 457 12; +#X obj 10 10 cnv 15 400 40 empty empty nervous_guis 20 12 0 24 -228992 +-66577 0; +#X obj 486 20 tgl 20 1 empty start_nervously1 start_it 8 -8 0 10 -24198 +-1 -250685 0 1; +#X obj 138 200 bng 15 1200 50 0 empty nerv_bng bang 8 -8 0 10 -262144 +-55405 -1; +#X obj 132 385 hsl 127 15 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 +10 -262144 -1 -1 0 1; +#X obj 364 184 tgl 15 1 empty nerv_tgl toggle 8 -8 0 10 -262144 -1 +-1 1 1; +#X obj 359 305 vsl 15 127 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 +10 -262144 -1 -1 0 1; +#N canvas 135 99 386 473 control 0; +#X obj 19 21 inlet; +#X obj 19 50 t b f; +#X obj 19 153 del 900; +#X obj 19 212 del 900; +#X obj 19 93 del 100; +#X obj 19 283 del 900; +#X obj 33 125 f; +#X obj 33 180 f; +#X obj 33 245 f; +#X obj 33 309 f; +#N canvas 280 166 794 432 bng 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 234 368 pack 0 0 0; +#X obj 250 29 metro 2000; +#X obj 445 122 random 555666; +#X obj 445 168 + 8; +#X obj 445 145 % 120; +#X obj 84 32 metro 100; +#X obj 234 261 random 1.67772e+07; +#X obj 266 283 random 1.67772e+07; +#X obj 299 315 random 1.67772e+07; +#X obj 84 11 inlet; +#X msg 64 312 \; nerv_bng delta \$1 \$2; +#X msg 234 390 \; nerv_bng color \$1 \$2 \$3; +#X msg 445 192 \; nerv_bng size \$1; +#X msg 250 51 \; nerv_bng bang; +#X obj 234 340 * -1; +#X obj 266 316 * -1; +#X obj 299 342 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 22 0; +#X connect 11 0 3 0; +#X connect 11 0 14 0; +#X connect 11 0 18 0; +#X connect 11 1 4 0; +#X connect 11 1 19 0; +#X connect 11 2 20 0; +#X connect 12 0 23 0; +#X connect 13 0 25 0; +#X connect 14 0 16 0; +#X connect 15 0 24 0; +#X connect 16 0 15 0; +#X connect 17 0 11 0; +#X connect 18 0 26 0; +#X connect 19 0 27 0; +#X connect 20 0 28 0; +#X connect 21 0 17 0; +#X connect 21 0 13 0; +#X connect 26 0 12 0; +#X connect 27 0 12 1; +#X connect 28 0 12 2; +#X restore 114 143 pd bng; +#N canvas 139 89 794 432 tgl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 445 168 + 8; +#X obj 445 144 % 120; +#X obj 85 31 metro 100; +#X obj 264 28 metro 1000; +#X obj 85 10 inlet; +#X msg 64 312 \; nerv_tgl delta \$1 \$2; +#X msg 226 322 \; nerv_tgl color \$1 \$2 \$3; +#X msg 445 192 \; nerv_tgl size \$1; +#X msg 264 51 \; nerv_tgl bang; +#X obj 226 298 pack 0 0 0; +#X obj 226 191 random 1.67772e+07; +#X obj 258 213 random 1.67772e+07; +#X obj 291 245 random 1.67772e+07; +#X obj 226 270 * -1; +#X obj 258 246 * -1; +#X obj 291 272 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 18 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 23 0; +#X connect 11 1 4 0; +#X connect 11 1 24 0; +#X connect 11 2 25 0; +#X connect 12 0 14 0; +#X connect 13 0 20 0; +#X connect 14 0 13 0; +#X connect 15 0 11 0; +#X connect 16 0 21 0; +#X connect 17 0 15 0; +#X connect 17 0 16 0; +#X connect 22 0 19 0; +#X connect 23 0 26 0; +#X connect 24 0 27 0; +#X connect 25 0 28 0; +#X connect 26 0 22 0; +#X connect 27 0 22 1; +#X connect 28 0 22 2; +#X restore 114 198 pd tgl; +#N canvas 322 99 794 432 hsl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 560 188 + 8; +#X obj 560 128 random 773322; +#X obj 445 208 pack 0 0; +#X obj 84 32 metro 100; +#X obj 561 155 % 30; +#X obj 445 183 + 20; +#X obj 446 149 % 110; +#X obj 254 305 metro 1000; +#X obj 254 327 random 846352; +#X obj 254 350 % 130; +#X obj 84 11 inlet; +#X msg 64 321 \; nerv_hsl delta \$1 \$2; +#X msg 254 373 \; nerv_hsl set \$1; +#X msg 445 231 \; nerv_hsl size \$1 \$2; +#X obj 245 202 pack 0 0 0; +#X obj 245 95 random 1.67772e+07; +#X obj 277 117 random 1.67772e+07; +#X obj 310 149 random 1.67772e+07; +#X obj 245 174 * -1; +#X obj 277 150 * -1; +#X obj 310 176 * -1; +#X msg 245 229 \; nerv_hsl color \$1 \$2 \$3; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 24 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 28 0; +#X connect 11 1 4 0; +#X connect 11 1 14 0; +#X connect 11 1 29 0; +#X connect 11 2 30 0; +#X connect 12 0 19 0; +#X connect 13 0 15 1; +#X connect 14 0 17 0; +#X connect 15 0 26 0; +#X connect 16 0 11 0; +#X connect 17 0 13 0; +#X connect 18 0 15 0; +#X connect 18 0 22 1; +#X connect 19 0 18 0; +#X connect 20 0 21 0; +#X connect 21 0 22 0; +#X connect 22 0 25 0; +#X connect 23 0 16 0; +#X connect 23 0 20 0; +#X connect 27 0 34 0; +#X connect 28 0 31 0; +#X connect 29 0 32 0; +#X connect 30 0 33 0; +#X connect 31 0 27 0; +#X connect 32 0 27 1; +#X connect 33 0 27 2; +#X restore 112 263 pd hsl; +#N canvas 148 132 794 432 vsl 0; +#X obj 114 260 - 0; +#X obj 148 258 f; +#X obj 147 222 t f b; +#X obj 79 122 random 56789; +#X obj 150 165 random 9876; +#X obj 47 236 - 0; +#X obj 81 234 f; +#X obj 80 198 t f b; +#X obj 150 192 % 50; +#X obj 79 145 % 50; +#X obj 64 289 pack 0 0; +#X obj 85 53 t b b b; +#X obj 445 122 random 555666; +#X obj 560 128 random 773322; +#X obj 445 208 pack 0 0; +#X obj 84 32 metro 100; +#X obj 241 299 metro 1000; +#X obj 240 325 random 846352; +#X obj 241 352 % 130; +#X obj 561 155 % 110; +#X obj 560 188 + 20; +#X obj 446 149 % 30; +#X obj 445 183 + 3; +#X obj 84 11 inlet; +#X msg 239 227 \; nerv_vsl color \$1 \$2 \$3; +#X msg 445 231 \; nerv_vsl size \$1 \$2; +#X msg 64 310 \; nerv_vsl delta \$1 \$2; +#X msg 241 376 \; nerv_vsl set \$1; +#X obj 239 203 pack 0 0 0; +#X obj 239 96 random 1.67772e+07; +#X obj 271 118 random 1.67772e+07; +#X obj 304 150 random 1.67772e+07; +#X obj 239 175 * -1; +#X obj 271 151 * -1; +#X obj 304 177 * -1; +#X connect 0 0 10 1; +#X connect 1 0 0 1; +#X connect 2 0 1 1; +#X connect 2 0 0 0; +#X connect 2 1 1 0; +#X connect 3 0 9 0; +#X connect 4 0 8 0; +#X connect 5 0 10 0; +#X connect 6 0 5 1; +#X connect 7 0 6 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 8 0 2 0; +#X connect 9 0 7 0; +#X connect 10 0 26 0; +#X connect 11 0 3 0; +#X connect 11 0 12 0; +#X connect 11 0 29 0; +#X connect 11 1 4 0; +#X connect 11 1 13 0; +#X connect 11 1 30 0; +#X connect 11 2 31 0; +#X connect 12 0 21 0; +#X connect 13 0 19 0; +#X connect 14 0 25 0; +#X connect 15 0 11 0; +#X connect 16 0 17 0; +#X connect 17 0 18 0; +#X connect 18 0 27 0; +#X connect 19 0 20 0; +#X connect 20 0 14 1; +#X connect 20 0 18 1; +#X connect 21 0 22 0; +#X connect 22 0 14 0; +#X connect 23 0 15 0; +#X connect 23 0 16 0; +#X connect 28 0 24 0; +#X connect 29 0 32 0; +#X connect 30 0 33 0; +#X connect 31 0 34 0; +#X connect 32 0 28 0; +#X connect 33 0 28 1; +#X connect 34 0 28 2; +#X restore 113 327 pd vsl; +#X connect 0 0 1 0; +#X connect 1 0 4 0; +#X connect 1 1 6 1; +#X connect 1 1 7 1; +#X connect 1 1 8 1; +#X connect 1 1 9 1; +#X connect 2 0 3 0; +#X connect 2 0 7 0; +#X connect 3 0 5 0; +#X connect 3 0 8 0; +#X connect 4 0 2 0; +#X connect 4 0 6 0; +#X connect 5 0 9 0; +#X connect 6 0 10 0; +#X connect 7 0 11 0; +#X connect 8 0 12 0; +#X connect 9 0 13 0; +#X restore 486 46 pd control; +#X text 17 88 You can dynamically control just about everything about +most GUI objects.; +#X connect 1 0 6 0; diff --git a/doc/tutorials/intro/Attic/grabbing_keystrokes.pd b/doc/tutorials/intro/Attic/grabbing_keystrokes.pd new file mode 100644 index 00000000..bf369dc5 --- /dev/null +++ b/doc/tutorials/intro/Attic/grabbing_keystrokes.pd @@ -0,0 +1,61 @@ +#N canvas 493 88 628 453 12; +#X obj 10 10 cnv 15 400 40 empty empty grabbing_keystrokes 20 12 0 +24 -228992 -66577 0; +#X obj 115 152 key; +#X floatatom 115 176 5 0 0 0 - - -; +#X text 284 216 This times how long between each; +#X text 284 232 press of the 'a' key.; +#X floatatom 215 176 5 0 0 0 - - -; +#X obj 215 152 keyup; +#X floatatom 315 176 5 0 0 0 - - -; +#X obj 315 152 keyname; +#X symbolatom 379 176 10 0 0 0 - - -; +#X text 20 231 't' key as toggle:; +#X obj 68 303 select 116; +#X obj 68 272 keyup; +#N canvas 238 530 478 328 /SUBPATCH/ 0; +#X obj 101 10 inlet; +#X obj 100 100 tgl 32 0 empty \$0-tgl empty 0 -6 0 8 -166441 -166441 +-262144 0 1; +#X obj 156 68 select 1; +#X msg 172 186 color \$1 \$2 \$3; +#X msg 268 146 1 1 0; +#X msg 133 144 -65281 0 -1; +#X obj 268 85 bang; +#X obj 176 241 send \$0-tgl; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 2 0 5 0; +#X connect 2 1 6 0; +#X connect 3 0 7 0; +#X connect 4 0 3 0; +#X connect 5 0 3 0; +#X connect 6 0 4 0; +#X coords 0 -1 1 1 32 32 1 100 100; +#X restore 68 327 pd; +#X text 13 63 Pd provides a set of objects for getting events from +the keyboard. [key] outputs on key down \, [keyup] outputs on key up +\, and [keyname] outputs both key up and key down \, and gives a symbolic +name for the current key.; +#X text 21 391 These objects will only grab keys when this window has +focus. If you click on the Pd window \, this window won't get key events +anymore.; +#X obj 376 259 key; +#X floatatom 376 283 5 0 0 0 - - -; +#X obj 475 261 keyup; +#X obj 376 312 select 97; +#X obj 475 312 select 97; +#X obj 411 341 timer; +#X floatatom 411 367 5 0 0 0 - - -; +#X connect 1 0 2 0; +#X connect 6 0 5 0; +#X connect 8 0 7 0; +#X connect 8 1 9 0; +#X connect 11 0 13 0; +#X connect 12 0 11 0; +#X connect 16 0 17 0; +#X connect 17 0 19 0; +#X connect 18 0 20 0; +#X connect 19 0 21 0; +#X connect 20 0 21 1; +#X connect 21 0 22 0; diff --git a/doc/tutorials/intro/Attic/sorting_messages_by_type.pd b/doc/tutorials/intro/Attic/sorting_messages_by_type.pd index 12e84c05..65f633be 100644 --- a/doc/tutorials/intro/Attic/sorting_messages_by_type.pd +++ b/doc/tutorials/intro/Attic/sorting_messages_by_type.pd @@ -1,47 +1,49 @@ -#N canvas 565 106 627 443 12; -#X obj -60 8 cnv 15 400 40 empty empty sorting_messages_by_type 20 +#N canvas 44 68 635 451 12; +#X obj 10 10 cnv 15 400 40 empty empty sorting_messages_by_type 20 12 0 24 -228992 -66577 0; -#X text -50 63 When processing messages \, some operations should only -be applied to messages of a certain type. [route] allows you to sort -messages by type:; -#X floatatom 168 339 5 0 0 0 - - -; -#X symbolatom 237 338 10 0 0 0 - - -; -#X obj 100 359 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 +#X floatatom 282 359 5 0 0 0 - - -; +#X symbolatom 351 358 10 0 0 0 - - -; +#X obj 214 379 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 -1 -1; -#X obj 100 315 route bang float symbol list; -#X obj 168 359 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 +#X obj 214 335 route bang float symbol list; +#X obj 282 379 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 -1 -1; -#X obj 237 359 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 +#X obj 351 379 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 -1 -1; -#X obj 306 359 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 +#X obj 420 379 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 -1 -1; -#X obj 375 359 bng 15 250 50 0 empty empty selector_series -18 23 1 +#X obj 489 379 bng 15 250 50 0 empty empty selector_series -18 23 1 12 -262144 -1 -1; -#X msg -43 173 bang; -#X msg 34 196 642.3; -#X msg 109 170 symbol moshimoshi; -#X msg 129 194 symbol sayonara; -#X obj -9 198 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X msg 40 172 bang; +#X msg 128 183 642.3; +#X msg 214 159 symbol moshimoshi; +#X msg 214 183 symbol sayonara; +#X obj 40 197 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X msg 331 171 1 2 3; -#X msg 344 194 5 for free!; -#X msg 345 228 list here we go...; -#X msg 345 261 not a list? nope...; -#X msg 11 172 float 5; +#X msg 411 171 1 2 3; +#X msg 411 194 5 for free!; +#X msg 411 218 list here we go...; +#X msg 423 251 not a list? nope...; +#X msg 105 159 float 5; +#X text 10 63 When processing messages \, some operations should only +be applied to messages of a certain type. [route] allows you to sort +messages by type:; +#X msg 423 276 selector data data; +#X connect 1 0 5 0; #X connect 2 0 6 0; -#X connect 3 0 7 0; -#X connect 5 0 4 0; -#X connect 5 1 2 0; -#X connect 5 2 3 0; -#X connect 5 3 8 0; -#X connect 5 4 9 0; -#X connect 10 0 5 0; -#X connect 11 0 5 0; -#X connect 12 0 5 0; -#X connect 13 0 5 0; -#X connect 14 0 5 0; -#X connect 15 0 5 0; -#X connect 16 0 5 0; -#X connect 17 0 5 0; -#X connect 18 0 5 0; -#X connect 19 0 5 0; +#X connect 4 0 3 0; +#X connect 4 1 1 0; +#X connect 4 2 2 0; +#X connect 4 3 7 0; +#X connect 4 4 8 0; +#X connect 9 0 4 0; +#X connect 10 0 4 0; +#X connect 11 0 4 0; +#X connect 12 0 4 0; +#X connect 13 0 4 0; +#X connect 14 0 4 0; +#X connect 15 0 4 0; +#X connect 16 0 4 0; +#X connect 17 0 4 0; +#X connect 18 0 4 0; +#X connect 20 0 4 0; diff --git a/doc/tutorials/intro/README.txt b/doc/tutorials/intro/README.txt index 57090b33..69ab99e5 100644 --- a/doc/tutorials/intro/README.txt +++ b/doc/tutorials/intro/README.txt @@ -7,12 +7,13 @@ Contributors include (in alphabetical order): Alexandre Castonguay Aymeric Mansoux -Ben Bogart +Ben Bogart Frank Barknecht -Hans-Christoph Steiner +Gregorio GarcĂ­a Karman +Hans-Christoph Steiner Jerome Abel Koray Tahiroglu Malte Steiner Max Neupert -Miller Puckette -Thomas Musil +Miller Puckette +Thomas Musil diff --git a/doc/tutorials/intro/TODO b/doc/tutorials/intro/TODO index 3f6d0141..009a7d69 100644 --- a/doc/tutorials/intro/TODO +++ b/doc/tutorials/intro/TODO @@ -12,59 +12,40 @@ - make looping sequence ----------- -File Order ----------- - -- hello world -- basic elements -- getting help -- edit mode -- objects -- connections -- messages -- EXERCISE: make your first Pd patch -- bang -- event driven processing -- counters -- hot and cold inlets -- right-to-left order -- ordering messages -- depth first -- storage objects -- atoms -- atomic messages -- selectors -- subpatches -- inlets and outlets -- outlet order -- Example: its all just data -- guis -- gui objects -- nervous guis - - -- EXERCISE + --------------- Unsorted topics --------------- +- math +- init to 0 +- comparing numbers +- expr +- creation arguments + + +- selecting events ([select]) +- sorting_messages_by_selectors ([route]) +- sorting_messages_by_atom ([route]) + +- storing a number globally ([value]) + +- building lists (pack and unpack, arguments) +- list2symbol + - trigger conversions - symbol conversion -- arguments - - keywords -- init to 0 -- math -- expr - - number limitations -- timing/metro +- more on timing + +- building lists +- using lists (unpack, lists replacing inlets) - writing objects in Pd (abstractions) @@ -72,7 +53,6 @@ Unsorted topics - namespaces - import -- selectors - multiple messages - sends and receives - sends in a message box diff --git a/doc/tutorials/intro/arguments.pd b/doc/tutorials/intro/arguments.pd deleted file mode 100644 index eb26924d..00000000 --- a/doc/tutorials/intro/arguments.pd +++ /dev/null @@ -1,59 +0,0 @@ -#N canvas 224 22 443 587 10; -#X text 10 4 arguments; -#X obj 158 68 float; -#X text 11 25 Many objects can accept "arguments" to define their behavior. -Here is a plain [float] object:; -#X text 14 98 Here is a [float] object with an argument of "5.5":; -#X obj 156 129 float 5.5; -#X obj 166 229 float 5.5; -#X obj 166 211 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X floatatom 166 250 5 0 0 0 - - -; -#X text 13 160 Here \, the argument of "5.5" makes this [float] store -the value 5.5 by default. Clicking the bang makes [float] output the -value that it is currently storing:; -#X floatatom 173 519 5 0 0 0 - - -; -#X symbolatom 221 518 10 0 0 0 - - -; -#X obj 126 539 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 --1 -1; -#X obj 126 495 route bang float symbol list; -#X obj 173 539 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 --1 -1; -#X obj 221 539 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 --1 -1; -#X obj 269 539 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 --1 -1; -#X msg 64 463 bang; -#X msg 105 463 5; -#X msg 141 463 symbol word; -#X msg 232 463 list one two three; -#X text 12 411 Some objects can accept many arguments at the same time. -For example \, you need to tell [route] what kind of data you want -\, and it will sort it based on the data type:; -#X obj 152 352 select 5; -#X floatatom 204 373 5 0 0 1 everything_else - -; -#X obj 153 373 bng 15 250 50 0 empty empty matched -52 9 0 12 -262144 --1 -1; -#X msg 151 329 5; -#X msg 120 329 3; -#X msg 183 329 7; -#X text 12 276 Some objects need to have some arguments in order to -do anything useful. For example \, you can tell [select] which number -to look for with an argument:; -#X connect 5 0 7 0; -#X connect 6 0 5 0; -#X connect 9 0 13 0; -#X connect 10 0 14 0; -#X connect 12 0 11 0; -#X connect 12 1 9 0; -#X connect 12 2 10 0; -#X connect 12 3 15 0; -#X connect 16 0 12 0; -#X connect 17 0 12 0; -#X connect 18 0 12 0; -#X connect 19 0 12 0; -#X connect 21 0 23 0; -#X connect 21 1 22 0; -#X connect 24 0 21 0; -#X connect 25 0 21 0; -#X connect 26 0 21 0; diff --git a/doc/tutorials/intro/building_lists.pd b/doc/tutorials/intro/building_lists.pd new file mode 100644 index 00000000..c0682d3b --- /dev/null +++ b/doc/tutorials/intro/building_lists.pd @@ -0,0 +1,31 @@ +#N canvas 148 243 628 453 12; +#X obj 10 10 cnv 15 400 40 empty empty building_lists 20 12 0 24 -228992 +-66577 0; +#X obj 117 350 pack float float float; +#X msg 117 381 \$3 \$1 \$2; +#X floatatom 117 324 5 0 0 0 - - -; +#X floatatom 224 325 5 0 0 0 - - -; +#X floatatom 332 326 5 0 0 0 - - -; +#X text 24 295 You can use arguments to reorder elements:; +#X obj 19 59 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1 +; +#X floatatom 234 108 5 0 0 0 - - -; +#X floatatom 126 108 5 0 0 0 - - -; +#X floatatom 19 108 5 0 0 0 - - -; +#X obj 19 82 trigger bang bang bang; +#X obj 19 132 pack float float float; +#X obj 19 162 pddp/print_long; +#X obj 117 411 pddp/print_long; +#X connect 1 0 2 0; +#X connect 2 0 14 0; +#X connect 3 0 1 0; +#X connect 4 0 1 1; +#X connect 5 0 1 2; +#X connect 7 0 11 0; +#X connect 8 0 12 2; +#X connect 9 0 12 1; +#X connect 10 0 12 0; +#X connect 11 0 10 0; +#X connect 11 1 9 0; +#X connect 11 2 8 0; +#X connect 12 0 13 0; diff --git a/doc/tutorials/intro/comparing_numbers.pd b/doc/tutorials/intro/comparing_numbers.pd new file mode 100644 index 00000000..c9b2555a --- /dev/null +++ b/doc/tutorials/intro/comparing_numbers.pd @@ -0,0 +1,56 @@ +#N canvas 411 149 624 449 12; +#X obj 10 10 cnv 15 400 40 empty empty comparing_numbers 20 12 0 24 +-228992 -66577 0; +#X floatatom 24 160 5 0 0 0 - - -; +#X msg 24 113 7; +#X floatatom 97 160 5 0 0 0 - - -; +#X msg 97 113 4; +#X obj 97 137 == 4; +#X floatatom 165 160 5 0 0 0 - - -; +#X msg 165 113 20; +#X floatatom 234 160 5 0 0 0 - - -; +#X msg 234 113 20; +#X obj 234 137 != 10; +#X obj 24 137 > 1; +#X obj 165 137 >= 8; +#X floatatom 107 212 5 0 0 0 - - -; +#X obj 15 245 == 5; +#X obj 82 245 != 5; +#X obj 147 245 > 5; +#X obj 209 245 < 5; +#X floatatom 15 272 5 0 0 0 - - -; +#X floatatom 82 272 5 0 0 0 - - -; +#X floatatom 147 272 5 0 0 0 - - -; +#X floatatom 209 273 5 0 0 0 - - -; +#X text 162 212 <--haga click y arrastre; +#X msg 496 115 3; +#X floatatom 441 116 5 0 0 0 - - -; +#X floatatom 496 164 5 0 0 0 - - -; +#X obj 496 140 > 1; +#X obj 441 142 < 5; +#X floatatom 441 165 5 0 0 0 - - -; +#X obj 463 191 &&; +#X floatatom 463 213 5 0 0 0 - - -; +#X connect 2 0 11 0; +#X connect 4 0 5 0; +#X connect 5 0 3 0; +#X connect 7 0 12 0; +#X connect 9 0 10 0; +#X connect 10 0 8 0; +#X connect 11 0 1 0; +#X connect 12 0 6 0; +#X connect 13 0 14 0; +#X connect 13 0 15 0; +#X connect 13 0 16 0; +#X connect 13 0 17 0; +#X connect 14 0 18 0; +#X connect 15 0 19 0; +#X connect 16 0 20 0; +#X connect 17 0 21 0; +#X connect 23 0 26 0; +#X connect 24 0 27 0; +#X connect 25 0 29 1; +#X connect 26 0 25 0; +#X connect 27 0 28 0; +#X connect 28 0 29 0; +#X connect 29 0 30 0; diff --git a/doc/tutorials/intro/creation_arguments.pd b/doc/tutorials/intro/creation_arguments.pd new file mode 100644 index 00000000..eb26924d --- /dev/null +++ b/doc/tutorials/intro/creation_arguments.pd @@ -0,0 +1,59 @@ +#N canvas 224 22 443 587 10; +#X text 10 4 arguments; +#X obj 158 68 float; +#X text 11 25 Many objects can accept "arguments" to define their behavior. +Here is a plain [float] object:; +#X text 14 98 Here is a [float] object with an argument of "5.5":; +#X obj 156 129 float 5.5; +#X obj 166 229 float 5.5; +#X obj 166 211 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X floatatom 166 250 5 0 0 0 - - -; +#X text 13 160 Here \, the argument of "5.5" makes this [float] store +the value 5.5 by default. Clicking the bang makes [float] output the +value that it is currently storing:; +#X floatatom 173 519 5 0 0 0 - - -; +#X symbolatom 221 518 10 0 0 0 - - -; +#X obj 126 539 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 +-1 -1; +#X obj 126 495 route bang float symbol list; +#X obj 173 539 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 +-1 -1; +#X obj 221 539 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 +-1 -1; +#X obj 269 539 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 +-1 -1; +#X msg 64 463 bang; +#X msg 105 463 5; +#X msg 141 463 symbol word; +#X msg 232 463 list one two three; +#X text 12 411 Some objects can accept many arguments at the same time. +For example \, you need to tell [route] what kind of data you want +\, and it will sort it based on the data type:; +#X obj 152 352 select 5; +#X floatatom 204 373 5 0 0 1 everything_else - -; +#X obj 153 373 bng 15 250 50 0 empty empty matched -52 9 0 12 -262144 +-1 -1; +#X msg 151 329 5; +#X msg 120 329 3; +#X msg 183 329 7; +#X text 12 276 Some objects need to have some arguments in order to +do anything useful. For example \, you can tell [select] which number +to look for with an argument:; +#X connect 5 0 7 0; +#X connect 6 0 5 0; +#X connect 9 0 13 0; +#X connect 10 0 14 0; +#X connect 12 0 11 0; +#X connect 12 1 9 0; +#X connect 12 2 10 0; +#X connect 12 3 15 0; +#X connect 16 0 12 0; +#X connect 17 0 12 0; +#X connect 18 0 12 0; +#X connect 19 0 12 0; +#X connect 21 0 23 0; +#X connect 21 1 22 0; +#X connect 24 0 21 0; +#X connect 25 0 21 0; +#X connect 26 0 21 0; diff --git a/doc/tutorials/intro/grabbing_keystrokes.pd b/doc/tutorials/intro/grabbing_keystrokes.pd new file mode 100644 index 00000000..bf369dc5 --- /dev/null +++ b/doc/tutorials/intro/grabbing_keystrokes.pd @@ -0,0 +1,61 @@ +#N canvas 493 88 628 453 12; +#X obj 10 10 cnv 15 400 40 empty empty grabbing_keystrokes 20 12 0 +24 -228992 -66577 0; +#X obj 115 152 key; +#X floatatom 115 176 5 0 0 0 - - -; +#X text 284 216 This times how long between each; +#X text 284 232 press of the 'a' key.; +#X floatatom 215 176 5 0 0 0 - - -; +#X obj 215 152 keyup; +#X floatatom 315 176 5 0 0 0 - - -; +#X obj 315 152 keyname; +#X symbolatom 379 176 10 0 0 0 - - -; +#X text 20 231 't' key as toggle:; +#X obj 68 303 select 116; +#X obj 68 272 keyup; +#N canvas 238 530 478 328 /SUBPATCH/ 0; +#X obj 101 10 inlet; +#X obj 100 100 tgl 32 0 empty \$0-tgl empty 0 -6 0 8 -166441 -166441 +-262144 0 1; +#X obj 156 68 select 1; +#X msg 172 186 color \$1 \$2 \$3; +#X msg 268 146 1 1 0; +#X msg 133 144 -65281 0 -1; +#X obj 268 85 bang; +#X obj 176 241 send \$0-tgl; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 2 0 5 0; +#X connect 2 1 6 0; +#X connect 3 0 7 0; +#X connect 4 0 3 0; +#X connect 5 0 3 0; +#X connect 6 0 4 0; +#X coords 0 -1 1 1 32 32 1 100 100; +#X restore 68 327 pd; +#X text 13 63 Pd provides a set of objects for getting events from +the keyboard. [key] outputs on key down \, [keyup] outputs on key up +\, and [keyname] outputs both key up and key down \, and gives a symbolic +name for the current key.; +#X text 21 391 These objects will only grab keys when this window has +focus. If you click on the Pd window \, this window won't get key events +anymore.; +#X obj 376 259 key; +#X floatatom 376 283 5 0 0 0 - - -; +#X obj 475 261 keyup; +#X obj 376 312 select 97; +#X obj 475 312 select 97; +#X obj 411 341 timer; +#X floatatom 411 367 5 0 0 0 - - -; +#X connect 1 0 2 0; +#X connect 6 0 5 0; +#X connect 8 0 7 0; +#X connect 8 1 9 0; +#X connect 11 0 13 0; +#X connect 12 0 11 0; +#X connect 16 0 17 0; +#X connect 17 0 19 0; +#X connect 18 0 20 0; +#X connect 19 0 21 0; +#X connect 20 0 21 1; +#X connect 21 0 22 0; diff --git a/doc/tutorials/intro/selecting_events.pd b/doc/tutorials/intro/selecting_events.pd new file mode 100644 index 00000000..9e3f1a3c --- /dev/null +++ b/doc/tutorials/intro/selecting_events.pd @@ -0,0 +1,27 @@ +#N canvas 10 40 632 457 12; +#X obj 10 10 cnv 15 400 40 empty empty selecting_events 20 12 0 24 +-228992 -66577 0; +#X floatatom 75 138 5 0 0 0 - - -; +#X text 130 136 <--haga click y arrastre; +#X obj 75 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 105 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 75 161 select 2 3 4 5 6 10; +#X obj 136 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 167 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 198 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 229 187 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X floatatom 260 187 5 0 0 0 - - -; +#X connect 1 0 5 0; +#X connect 5 0 3 0; +#X connect 5 1 4 0; +#X connect 5 2 6 0; +#X connect 5 3 7 0; +#X connect 5 4 8 0; +#X connect 5 5 9 0; +#X connect 5 6 10 0; diff --git a/doc/tutorials/intro/sorting_messages_by_selectors.pd b/doc/tutorials/intro/sorting_messages_by_selectors.pd index 266d0b04..21955ca5 100644 --- a/doc/tutorials/intro/sorting_messages_by_selectors.pd +++ b/doc/tutorials/intro/sorting_messages_by_selectors.pd @@ -1,4 +1,3 @@ -#N canvas 282 124 623 439 12; -#X obj -60 8 cnv 15 400 40 empty empty sorting_messages_by_type 20 -12 0 24 -228992 -66577 0; -#X text -50 63 comment; +#N canvas 290 64 632 457 12; +#X obj 10 10 cnv 15 420 40 empty empty sorting_messages_by_selector +20 12 0 24 -228992 -66577 0; diff --git a/doc/tutorials/intro/sorting_messages_by_type.pd b/doc/tutorials/intro/sorting_messages_by_type.pd index 12e84c05..65f633be 100644 --- a/doc/tutorials/intro/sorting_messages_by_type.pd +++ b/doc/tutorials/intro/sorting_messages_by_type.pd @@ -1,47 +1,49 @@ -#N canvas 565 106 627 443 12; -#X obj -60 8 cnv 15 400 40 empty empty sorting_messages_by_type 20 +#N canvas 44 68 635 451 12; +#X obj 10 10 cnv 15 400 40 empty empty sorting_messages_by_type 20 12 0 24 -228992 -66577 0; -#X text -50 63 When processing messages \, some operations should only -be applied to messages of a certain type. [route] allows you to sort -messages by type:; -#X floatatom 168 339 5 0 0 0 - - -; -#X symbolatom 237 338 10 0 0 0 - - -; -#X obj 100 359 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 +#X floatatom 282 359 5 0 0 0 - - -; +#X symbolatom 351 358 10 0 0 0 - - -; +#X obj 214 379 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144 -1 -1; -#X obj 100 315 route bang float symbol list; -#X obj 168 359 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 +#X obj 214 335 route bang float symbol list; +#X obj 282 379 bng 15 250 50 0 empty empty float -4 23 1 12 -262144 -1 -1; -#X obj 237 359 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 +#X obj 351 379 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144 -1 -1; -#X obj 306 359 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 +#X obj 420 379 bng 15 250 50 0 empty empty list -2 23 1 12 -262144 -1 -1; -#X obj 375 359 bng 15 250 50 0 empty empty selector_series -18 23 1 +#X obj 489 379 bng 15 250 50 0 empty empty selector_series -18 23 1 12 -262144 -1 -1; -#X msg -43 173 bang; -#X msg 34 196 642.3; -#X msg 109 170 symbol moshimoshi; -#X msg 129 194 symbol sayonara; -#X obj -9 198 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X msg 40 172 bang; +#X msg 128 183 642.3; +#X msg 214 159 symbol moshimoshi; +#X msg 214 183 symbol sayonara; +#X obj 40 197 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X msg 331 171 1 2 3; -#X msg 344 194 5 for free!; -#X msg 345 228 list here we go...; -#X msg 345 261 not a list? nope...; -#X msg 11 172 float 5; +#X msg 411 171 1 2 3; +#X msg 411 194 5 for free!; +#X msg 411 218 list here we go...; +#X msg 423 251 not a list? nope...; +#X msg 105 159 float 5; +#X text 10 63 When processing messages \, some operations should only +be applied to messages of a certain type. [route] allows you to sort +messages by type:; +#X msg 423 276 selector data data; +#X connect 1 0 5 0; #X connect 2 0 6 0; -#X connect 3 0 7 0; -#X connect 5 0 4 0; -#X connect 5 1 2 0; -#X connect 5 2 3 0; -#X connect 5 3 8 0; -#X connect 5 4 9 0; -#X connect 10 0 5 0; -#X connect 11 0 5 0; -#X connect 12 0 5 0; -#X connect 13 0 5 0; -#X connect 14 0 5 0; -#X connect 15 0 5 0; -#X connect 16 0 5 0; -#X connect 17 0 5 0; -#X connect 18 0 5 0; -#X connect 19 0 5 0; +#X connect 4 0 3 0; +#X connect 4 1 1 0; +#X connect 4 2 2 0; +#X connect 4 3 7 0; +#X connect 4 4 8 0; +#X connect 9 0 4 0; +#X connect 10 0 4 0; +#X connect 11 0 4 0; +#X connect 12 0 4 0; +#X connect 13 0 4 0; +#X connect 14 0 4 0; +#X connect 15 0 4 0; +#X connect 16 0 4 0; +#X connect 17 0 4 0; +#X connect 18 0 4 0; +#X connect 20 0 4 0; diff --git a/doc/tutorials/intro/storing_a_number_globally.pd b/doc/tutorials/intro/storing_a_number_globally.pd new file mode 100644 index 00000000..42ceaaf6 --- /dev/null +++ b/doc/tutorials/intro/storing_a_number_globally.pd @@ -0,0 +1,35 @@ +#N canvas 326 214 628 453 12; +#X obj 10 10 cnv 15 400 40 empty empty storing_a_number_globally 20 +12 0 24 -228992 -66577 0; +#X obj 223 131 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X floatatom 223 180 5 0 0 0 - - -; +#X obj 223 156 value variable1; +#X obj 58 133 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X floatatom 58 182 5 0 0 0 - - -; +#X obj 58 158 value variable1; +#X floatatom 88 134 5 0 0 0 - - -; +#X floatatom 252 131 5 0 0 0 - - -; +#X obj 273 268 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X floatatom 273 317 5 0 0 0 - - -; +#X obj 58 270 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X floatatom 58 319 5 0 0 0 - - -; +#X floatatom 88 271 5 0 0 0 - - -; +#X floatatom 302 268 5 0 0 0 - - -; +#X obj 273 293 value something_else; +#X obj 58 295 value something_else; +#X connect 1 0 3 0; +#X connect 3 0 2 0; +#X connect 4 0 6 0; +#X connect 6 0 5 0; +#X connect 7 0 6 0; +#X connect 8 0 3 0; +#X connect 9 0 15 0; +#X connect 11 0 16 0; +#X connect 13 0 16 0; +#X connect 14 0 15 0; +#X connect 15 0 10 0; +#X connect 16 0 12 0; diff --git a/doc/tutorials/intro/using_lists.pd b/doc/tutorials/intro/using_lists.pd new file mode 100644 index 00000000..4f40ff58 --- /dev/null +++ b/doc/tutorials/intro/using_lists.pd @@ -0,0 +1,17 @@ +#N canvas 10 40 624 449 12; +#X obj 10 10 cnv 15 400 40 empty empty using_lists 20 12 0 24 -228992 +-66577 0; +#X msg 49 113 300 240 1; +#X floatatom 49 187 5 0 0 0 - - -; +#X floatatom 166 187 5 0 0 0 - - -; +#X floatatom 284 187 5 0 0 0 - - -; +#X obj 49 148 unpack float float float; +#X msg 52 281 1 1; +#X obj 52 308 +; +#X floatatom 52 338 5 0 0 0 - - -; +#X connect 1 0 5 0; +#X connect 5 0 2 0; +#X connect 5 1 3 0; +#X connect 5 2 4 0; +#X connect 6 0 7 0; +#X connect 7 0 8 0; -- cgit v1.2.1