From bcb36add25f5f7538ff13a0f9828db8a06830c03 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Tue, 16 Nov 2010 06:37:15 +0000 Subject: added META subpatch svn path=/trunk/externals/maxlib/; revision=14442 --- arbran-help.pd | 68 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 28 deletions(-) (limited to 'arbran-help.pd') diff --git a/arbran-help.pd b/arbran-help.pd index 9153bf5..5d766f9 100644 --- a/arbran-help.pd +++ b/arbran-help.pd @@ -1,28 +1,40 @@ -#N canvas 190 136 663 491 12; -#X obj 41 152 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X floatatom 41 249 5 0 0; -#N canvas 0 0 450 300 graph1 0; -#X array array1 6 float 1; -#A 0 1.1 2.67143 3.24285 3.1 4.38571 8.67143; -#X coords 0 10 5 0 200 140 1; -#X restore 347 71 graph; -#N canvas 0 0 450 300 graph2 0; -#X array array2 6 float 1; -#A 0 0.0229077 0.204366 0.486501 0.0632986 0.204028 0.025319; -#X coords 0 1 5 0 200 140 1; -#X restore 347 220 graph; -#X obj 41 202 arbran array1 array2; -#X text 39 21 arbran :: generates a random variable that conforms -to the piecewise probability density functions specified in two arrays -; -#X text 40 297 array1 has values between 0 and 10; -#X text 40 317 array2 between 0 and 1 !; -#X msg 99 152 pdfscale; -#X text 41 389 array1 stores the values and array2 the corresponding -probabilities (0 - 1) for each of that values \, use message 'pdfscale' -to check (and adjust) the probability values to correct settings (the -area below the curve has to be 1); -#X connect 0 0 4 0; -#X connect 4 0 1 0; -#X connect 8 0 4 0; +#N canvas 0 26 663 491 12; +#X obj 41 152 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X floatatom 41 249 5 0 0 0 - - -; +#N canvas 0 0 450 300 (subpatch) 0; +#X array \$0-a1 6 float 1; +#A 0 1.1 2.67143 3.24285 3.1 4.38571 8.67143; +#X coords 0 10 5 0 200 140 1; +#X restore 347 71 graph; +#N canvas 0 0 450 300 (subpatch) 0; +#X array \$0-a2 6 float 1; +#A 0 0.0229077 0.204366 0.486501 0.0632986 0.204028 0.025319; +#X coords 0 1 5 0 200 140 1; +#X restore 347 240 graph; +#X text 39 21 arbran :: generates a random variable that conforms to +the piecewise probability density functions specified in two arrays +; +#X text 40 297 array1 has values between 0 and 10; +#X text 40 317 array2 between 0 and 1 !; +#X msg 99 152 pdfscale; +#X text 41 389 array1 stores the values and array2 the corresponding +probabilities (0 - 1) for each of that values \, use message 'pdfscale' +to check (and adjust) the probability values to correct settings (the +area below the curve has to be 1); +#N canvas 293 158 494 344 META 0; +#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2; +#X text 12 135 AUTHOR Olaf Matthes ; +#X text 12 45 DESCRIPTION generate a random variable conforming to +the piecewise probability density functions specified in two arrays +; +#X text 12 95 INLET_0 bang pdfscale; +#X text 12 115 OUTLET_0 float; +#X text 12 5 KEYWORDS control random array; +#X restore 605 463 pd META; +#X obj 41 202 arbran \$0-a1 \$0-a2; +#X connect 0 0 10 0; +#X connect 7 0 10 0; +#X connect 10 0 1 0; -- cgit v1.2.1