diff options
Diffstat (limited to 'pd/doc/5.reference/getsize.pd')
-rw-r--r-- | pd/doc/5.reference/getsize.pd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pd/doc/5.reference/getsize.pd b/pd/doc/5.reference/getsize.pd new file mode 100644 index 00000000..f2b17e2f --- /dev/null +++ b/pd/doc/5.reference/getsize.pd @@ -0,0 +1,41 @@ +#N struct help-getsize-template float x float y array array1 help-getsize-array1-template +; +#N struct help-getsize-array1-template float y; +#N canvas 340 20 655 398 12; +#X text 28 319 see also:; +#X obj 25 339 template; +#N canvas 393 10 491 261 help-getsize-template 0; +#X obj 27 76 plot array1 500 1 10 15 20; +#X obj 27 174 filledpolygon 509 509 0 -10 -10 10 -10 10 10 -10 10; +#X obj 24 16 template float x float y array array1 help-getsize-array1-template +; +#X restore 338 311 pd help-getsize-template; +#N canvas 0 0 301 193 help-getsize-data 1; +#X scalar help-getsize-template 43 37 \; 0 \; 10 \; 0 \; 10 \; 20 \; +10 \; 20 \; 70 \; 10 \; \;; +#X restore 337 290 pd help-getsize-data; +#N canvas 196 292 365 134 help-getsize-array1-template 0; +#X obj 30 71 filledpolygon 0 0 0 -5 0 0 5 5 0 0 -5; +#X obj 32 27 template float y; +#X restore 337 334 pd help-getsize-array1-template; +#X obj 102 339 pointer; +#X obj 236 338 setsize; +#X obj 25 166 pointer; +#X msg 25 142 traverse pd-help-getsize-data \, next; +#X floatatom 25 242 5 0 0; +#X text 360 214 arguments: template \, field name; +#X text 76 240 here we just get the value of y.; +#X obj 25 213 getsize help-getsize-template array1; +#X text 34 192 inlet for pointer; +#X obj 35 21 getsize; +#X text 98 22 -- get number of elements of an array; +#X text 24 44 When sent a pointer \, "element" looks up a field \, +which should be an array \, and outputs the number of elements of the +array. The template and field name are specified as creation arguments. +; +#X text 23 110 The smallest possible size is one.; +#X obj 169 339 element; +#X text 397 374 updated for Pd version 0.35; +#X connect 7 0 12 0; +#X connect 8 0 7 0; +#X connect 12 0 9 0; |