From 388f7a1df37afeed0dd120f8091614a7f6dd91ab Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Wed, 18 May 2005 04:28:51 +0000 Subject: Damn, edited this before and lost the update. More data features. Took about 12 patches. svn path=/trunk/; revision=3006 --- pd/doc/7.stuff/data-structures/2.getting.data.pd | 42 +++++++++--------- pd/doc/7.stuff/data-structures/5.array.pd | 15 +++---- pd/doc/7.stuff/tools/testtone.pd | 54 ++++++++++++------------ 3 files changed, 55 insertions(+), 56 deletions(-) (limited to 'pd/doc/7.stuff') diff --git a/pd/doc/7.stuff/data-structures/2.getting.data.pd b/pd/doc/7.stuff/data-structures/2.getting.data.pd index 123b869f..4b200052 100644 --- a/pd/doc/7.stuff/data-structures/2.getting.data.pd +++ b/pd/doc/7.stuff/data-structures/2.getting.data.pd @@ -1,40 +1,40 @@ -#N struct template2 float x float y float z float q; -#N canvas 363 11 630 603 12; -#X text 311 559 updated for Pd version 0.32.; +#N struct template2 float x float y float z float q float zz; +#N canvas 138 2 630 580 12; +#X text 345 543 updated for Pd version 0.32.; #N canvas 42 312 598 266 stuff 0; #X obj 353 159 pointer; #X obj 117 103 t b b b; #X msg 117 62 bang; #X obj 117 31 loadbang; -#X text 151 62 click here to re-initialize; -#X text 126 206 Explained later...; -#X msg 20 139 50 250 30 9 \, 200 200 -20 900 \, 100 200 -50 30; -#X obj 20 162 append template2 x y z q; +#X text 163 62 click here to re-initialize; +#X text 127 242 Explained later...; +#X obj 28 208 append template2 x y z q; #X msg 353 101 \; pd-data2 clear; #X msg 353 137 traverse pd-data2 \, bang; -#X connect 0 0 7 4; -#X connect 1 0 6 0; -#X connect 1 1 9 0; -#X connect 1 2 8 0; +#X msg 28 185 50 150 30 9 \, 200 100 -20 900 \, 100 100 -50 30; +#X connect 0 0 6 4; +#X connect 1 0 9 0; +#X connect 1 1 8 0; +#X connect 1 2 7 0; #X connect 2 0 1 0; #X connect 3 0 2 0; -#X connect 6 0 7 0; -#X connect 9 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 6 0; #X restore 506 310 pd stuff; #X text 506 242 subpatches:; #X obj 15 303 pointer; #X msg 27 271 next; #X text 75 301 <- object that outputs pointers to scalars; -#N canvas 13 22 345 271 data2 1; -#X scalar template2 53 202 30 9 \;; -#X scalar template2 203 152 -20 900 \;; -#X scalar template2 103 152 -50 30 \;; +#N canvas 13 22 307 198 data2 1; +#X scalar template2 50 150 30 9 0 \;; +#X scalar template2 200 100 -20 900 0 \;; +#X scalar template2 100 100 -50 30 0 \;; #X restore 506 265 pd data2; -#N canvas 15 278 554 155 template2 0; -#X obj 15 46 filledpolygon 244 q 5 0 0 20 z 40 0; +#N canvas 315 125 554 155 template2 1; #X text 13 79 The template for the two scalars \, as in the last patch ; -#X obj 15 21 struct template2 float x float y float z float q; +#X obj 15 46 filledpolygon 244 q 5 0 0 20 z 40 0; +#X obj 14 21 struct template2 float x float y float z float q; #X restore 506 288 pd template2; #X obj 15 355 get template2 x y z q; #X floatatom 15 384 5 0 0 0 - - -; @@ -43,7 +43,7 @@ #X floatatom 199 385 5 0 0 0 - - -; #X msg 15 246 traverse pd-data2; #X obj 59 330 print; -#X text 100 330 <- this gets a bang when we reach the end; +#X text 111 331 <- this gets a bang when we reach the end; #X text 211 353 <- this takes incoming pointers; #X text 214 367 and outputs the values of x \, y \, z \, and q.; #X text 172 245 <- go to head of list (click first); diff --git a/pd/doc/7.stuff/data-structures/5.array.pd b/pd/doc/7.stuff/data-structures/5.array.pd index 9f11e17c..15e43d22 100644 --- a/pd/doc/7.stuff/data-structures/5.array.pd +++ b/pd/doc/7.stuff/data-structures/5.array.pd @@ -13,14 +13,13 @@ #X obj 318 163 pointer; #X msg 449 194 bang; #N canvas 0 0 384 196 data5 1; -#X scalar template5 50 150 30 9 \; 6 \; 10 \; 12 \; 14 \; 20 \; 26 -\; 32 \; 31 \; 26 \; 26 \; 23 \; 19 \; 15 \; 11 \; 7 \; 5 \; -55 \; --56 \; -58 \; -1 \; -1 \; -6 \; -7 \; -8 \; -10 \; -11.3333 \; -12.6667 -\; -14 \; -18 \; -20 \; -22 \; -24 \; -26 \; -28 \; -31 \; -35 \; -37 -\; -37 \; -37 \; -37 \; -38 \; -39 \; -40 \; -41 \; -42 \; -43 \; -47 -\; -49 \; -51 \; -52 \; \;; +#X scalar template5 60 109 30 9 \; 0 \; 0 \; 0 \; 0 \; 0 \; 3 \; 0 +\; 0 \; 0 \; 7 \; -60 \; -66 \; -68 \; -70 \; -88 \; -100 \; -100 \; +14 \; 12 \; 8 \; 6 \; 2 \; -4 \; -26 \; -34 \; -58 \; -60 \; -66 \; +-66 \; -66 \; -66 \; 0 \; 0 \; 0 \; 0 \; 0 \; 0 \; 0 \; 0 \; 0 \; 0 +\; 0 \; 0 \; 0 \; 0 \; 43 \; 0 \; 0 \; 0 \; 0 \; \;; #X restore 508 314 pd data5; -#N canvas 90 339 646 260 template5 1; +#N canvas 470 534 646 260 template5 1; #X obj 8 91 filledpolygon 244 q 3 0 0 20 z 40 0; #X text 6 44 this declares an array named "bazoo" whose elements are described by "template5-element." Array declarations take three arguments @@ -32,7 +31,7 @@ spaced 4 apart.; variable---see the help window for "plot".; #X obj 6 8 struct template5 float x float y float z float q array bazoo template5-element; -#X obj 8 113 plot bazoo 700 3 30 10 4 1; +#X obj 8 113 plot bazoo 700 3 30 40 4; #X restore 508 337 pd template5; #N canvas 65 248 568 128 template5-element 0; #X text 12 36 This says that array elements will have a single floating-point diff --git a/pd/doc/7.stuff/tools/testtone.pd b/pd/doc/7.stuff/tools/testtone.pd index 257422f9..c5eae9af 100644 --- a/pd/doc/7.stuff/tools/testtone.pd +++ b/pd/doc/7.stuff/tools/testtone.pd @@ -1,4 +1,4 @@ -#N canvas 182 142 581 402 12; +#N canvas 99 78 581 402 12; #X floatatom 83 307 3 0 0 0 - - -; #X obj 33 257 notein; #X obj 33 283 stripnote; @@ -61,9 +61,9 @@ started" in the Help menu.; but is free for you to use for any reasonable purpose. See the file \, LICENSE.txt in the distribution.; #X obj 135 117 tgl 20 0 tone-ch1 tone-ch1 1 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 160 117 tgl 20 0 tone-ch2 tone-ch2 2 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 236 282 tgl 20 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 1; #X obj 394 110 tgl 20 0 tone-monitor set-tone-monitor monitor 25 10 @@ -93,13 +93,13 @@ but is free for you to use for any reasonable purpose. See the file #X obj 393 148 tgl 20 0 tone-hipass set-tone-hipass input-hipass 25 10 0 12 -262144 -1 -1 0 1; #X obj 185 117 tgl 20 0 tone-ch3 tone-ch3 3 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 210 117 tgl 20 0 tone-ch4 tone-ch4 4 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 235 117 tgl 20 0 tone-ch5 tone-ch5 5 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 260 117 tgl 20 0 tone-ch6 tone-ch6 6 5 -8 0 12 -262144 -1 -1 -1 1; +0 1; #X obj 331 108 bng 15 250 50 0 tone-all empty ALL 20 8 0 12 -262144 -1 -1; #X obj 331 129 bng 15 250 50 0 tone-none empty NONE 20 8 0 12 -262144 @@ -122,7 +122,7 @@ but is free for you to use for any reasonable purpose. See the file #X obj 379 256 print~; #X obj 438 227 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#N canvas 162 353 903 462 -------audio----------- 0; +#N canvas 0 114 903 462 -------audio----------- 0; #X obj 186 95 hip~ 5; #X obj 194 172 outlet; #X obj 194 146 int; @@ -161,18 +161,18 @@ but is free for you to use for any reasonable purpose. See the file #X obj 28 165 s tone-hip; #X obj 28 114 r tone-hipass; #N canvas 499 63 548 519 glue+loadbang 0; -#X obj 171 21 loadbang; -#X obj 171 176 r tone-all; -#X msg 171 204 \; tone-ch1 1 \; tone-ch2 1 \; tone-ch3 1 \; tone-ch4 -1 \; tone-ch5 1 \; tone-ch6 1; -#X obj 168 323 r tone-none; -#X msg 168 352 \; tone-ch1 0 \; tone-ch2 0 \; tone-ch3 0 \; tone-ch4 -0 \; tone-ch5 0 \; tone-ch6 0; -#X msg 171 49 \; pd dsp 1 \; tone-pitch 69 \; tone-radio 2 \; tone-radio-set +#X obj 8 20 loadbang; +#X obj 175 18 r tone-all; +#X obj 285 16 r tone-none; +#X msg 8 48 \; pd dsp 1 \; tone-pitch 69 \; tone-radio 2 \; tone-radio-set 2 \; tone-type 1 \; tone-type-set 1 \; tone-all 1 \;; -#X connect 0 0 5 0; -#X connect 1 0 2 0; -#X connect 3 0 4 0; +#X msg 175 46 \; tone-ch1 1 \; tone-ch2 1 \; tone-ch3 1 \; tone-ch4 +1 \; tone-ch5 1 \; tone-ch6 1 \; tone-ch7 1 \; tone-ch8 1; +#X msg 285 47 \; tone-ch1 0 \; tone-ch2 0 \; tone-ch3 0 \; tone-ch4 +0 \; tone-ch5 0 \; tone-ch6 0 \; tone-ch7 0 \; tone-ch8 0; +#X connect 0 0 3 0; +#X connect 1 0 4 0; +#X connect 2 0 5 0; #X restore 22 332 pd glue+loadbang; #X obj 428 96 hip~ 5; #X obj 436 173 outlet; @@ -320,12 +320,12 @@ but is free for you to use for any reasonable purpose. See the file #X obj 1029 355 *~; #X obj 1019 385 +~; #X obj 1027 68 r tone-hip; -#X obj 918 278 r tone-ch5; -#X obj 1038 277 r tone-ch6; #X obj 899 43 adc~ 7; #X obj 1019 42 adc~ 8; #X obj 899 411 dac~ 7; #X obj 1019 410 dac~ 8; +#X obj 918 278 r tone-ch7; +#X obj 1038 277 r tone-ch8; #X connect 0 0 7 0; #X connect 0 0 3 0; #X connect 2 0 1 0; @@ -425,7 +425,7 @@ but is free for you to use for any reasonable purpose. See the file #X connect 106 0 104 0; #X connect 107 0 108 0; #X connect 108 0 109 1; -#X connect 109 0 127 0; +#X connect 109 0 125 0; #X connect 110 0 99 1; #X connect 111 0 117 0; #X connect 111 0 114 0; @@ -437,12 +437,12 @@ but is free for you to use for any reasonable purpose. See the file #X connect 118 0 116 0; #X connect 119 0 120 0; #X connect 120 0 121 1; -#X connect 121 0 128 0; +#X connect 121 0 126 0; #X connect 122 0 111 1; -#X connect 123 0 106 0; -#X connect 124 0 118 0; -#X connect 125 0 99 0; -#X connect 126 0 111 0; +#X connect 123 0 99 0; +#X connect 124 0 111 0; +#X connect 127 0 106 0; +#X connect 128 0 118 0; #X restore 139 159 pd -------audio-----------; #X floatatom 335 186 3 0 0 0 - - -; #X floatatom 368 186 3 0 0 0 - - -; -- cgit v1.2.1