Revision: 10393 http://pure-data.svn.sourceforge.net/pure-data/?rev=10393&view=rev Author: fbar Date: 2008-11-26 19:38:31 +0000 (Wed, 26 Nov 2008)
Log Message: ----------- added list-pad
Added Paths: ----------- trunk/abstractions/footils/list-abs/list-pad-help.pd trunk/abstractions/footils/list-abs/list-pad.pd
Added: trunk/abstractions/footils/list-abs/list-pad-help.pd =================================================================== --- trunk/abstractions/footils/list-abs/list-pad-help.pd (rev 0) +++ trunk/abstractions/footils/list-abs/list-pad-help.pd 2008-11-26 19:38:31 UTC (rev 10393) @@ -0,0 +1,47 @@ +#N canvas 272 125 614 647 10; +#X obj 159 205 list-pad; +#X obj 159 285 list trim; +#X obj 159 263 list prepend set; +#X msg 62 169 bang; +#X msg 270 205 a b c d e f; +#X msg 159 171 1 2 3; +#X msg 227 172 1 2 3 4 5 6 7 8 9; +#X text 111 367 Using an idiom by Michal Seta; +#X obj 50 29 list-pad; +#X msg 125 171 1; +#X text 106 418 The pad values can also be computed on demand:; +#X obj 125 471 list-pad; +#X obj 250 471 list-random 100 8; +#X obj 125 523 list trim; +#X obj 125 501 list prepend set; +#X obj 250 523 list trim; +#X obj 250 501 list prepend set; +#X msg 125 448 a b c d; +#X msg 159 330; +#X msg 125 568; +#X msg 250 568; +#X text 373 208 <= pad values; +#X text 97 53 Use [list-pad] when you want to complete a list with +more values , if the incoming list is too short. Longer lists get +passed unchanged.; +#X text 100 105 The list of padding values is provided by a message +or [list] cross connected to the rightmost in- and outlets as in the +example.; +#X connect 0 0 2 0; +#X connect 0 1 4 0; +#X connect 1 0 18 0; +#X connect 2 0 1 0; +#X connect 3 0 0 0; +#X connect 4 0 0 1; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 9 0 0 0; +#X connect 11 0 14 0; +#X connect 11 1 12 0; +#X connect 12 0 11 1; +#X connect 12 0 16 0; +#X connect 13 0 19 0; +#X connect 14 0 13 0; +#X connect 15 0 20 0; +#X connect 16 0 15 0; +#X connect 17 0 11 0;
Added: trunk/abstractions/footils/list-abs/list-pad.pd =================================================================== --- trunk/abstractions/footils/list-abs/list-pad.pd (rev 0) +++ trunk/abstractions/footils/list-abs/list-pad.pd 2008-11-26 19:38:31 UTC (rev 10393) @@ -0,0 +1,20 @@ +#N canvas 325 242 450 300 10; +#X obj 129 41 inlet; +#X obj 215 113 list; +#X obj 215 140 list length; +#X obj 148 190 list split; +#X obj 149 146 outlet; +#X obj 148 168 inlet; +#X obj 129 256 outlet; +#X obj 129 74 t a b b a; +#X obj 129 229 list append; +#X connect 0 0 7 0; +#X connect 1 0 2 0; +#X connect 2 0 3 1; +#X connect 3 1 8 1; +#X connect 5 0 3 0; +#X connect 7 0 8 0; +#X connect 7 1 4 0; +#X connect 7 2 8 1; +#X connect 7 3 1 0; +#X connect 8 0 6 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.