From 3bae78ce84a8a23b293bd5c22854b3f86742817e Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Mon, 15 Oct 2012 23:34:46 +0000 Subject: Added bit about expr already having this functionality svn path=/trunk/externals/arraysize/; revision=16388 --- arraysize-help.pd | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/arraysize-help.pd b/arraysize-help.pd index 3f3805c..1fd0897 100644 --- a/arraysize-help.pd +++ b/arraysize-help.pd @@ -1,8 +1,8 @@ -#N canvas 359 162 464 296 10; -#N canvas 0 22 450 300 graph1 0; +#N canvas 1 88 464 556 10; +#N canvas 0 22 450 300 (subpatch) 0; #X array test 100 float 0; #X coords 0 1 99 -1 200 140 1; -#X restore 193 76 graph; +#X restore 193 71 graph; #X obj 22 54 arraysize test; #X floatatom 22 78 5 0 0 0 - - -; #X msg 22 31 bang; @@ -11,12 +11,28 @@ #X msg 22 112 bang; #X obj 22 139 arraysize; #X msg 65 112 set test; -#X obj 228 264 pddp/pddplink ../all_about_arrays.pd -text all_about_arrays; -#X text 124 263 For more info:; +#X obj 228 259 pddp/pddplink ../all_about_arrays.pd -text all_about_arrays +; +#X text 124 258 For more info:; #X floatatom 22 245 5 0 0 0 - - -; #X msg 22 194 bang; #X obj 22 221 arraysize; #X msg 80 197 symbol test; +#X msg 22 383 bang; +#X obj 22 405 expr size("test"); +#X floatatom 22 427 5 0 0 0 - - -; +#X msg 166 383 bang; +#X obj 166 415 expr size("$s1"); +#X floatatom 166 437 5 0 0 0 - - -; +#X msg 223 383 symbol test; +#X msg 166 467 bang; +#X floatatom 166 521 5 0 0 0 - - -; +#X msg 259 467 symbol test; +#X obj 166 499 expr size("$s2"); +#X text 44 302 NOTE: This feature is already available with [expr] +as shown below. Since [expr] is already included with Pd-Vanilla and +[arraysize] is not \, it is recommended to use [expr] to get the size +of an array. This will make your patches more portable.; #X connect 1 0 2 0; #X connect 3 0 1 0; #X connect 6 0 7 0; @@ -25,3 +41,11 @@ #X connect 12 0 13 0; #X connect 13 0 11 0; #X connect 14 0 13 1; +#X connect 15 0 16 0; +#X connect 16 0 17 0; +#X connect 18 0 19 0; +#X connect 19 0 20 0; +#X connect 21 0 19 0; +#X connect 22 0 25 0; +#X connect 24 0 25 1; +#X connect 25 0 23 0; -- cgit v1.2.1