Revision: 10394 http://pure-data.svn.sourceforge.net/pure-data/?rev=10394&view=rev Author: fbar Date: 2008-11-27 07:16:15 +0000 (Thu, 27 Nov 2008)
Log Message: ----------- changed interface of list-pad to be more traditional
Modified Paths: -------------- trunk/abstractions/footils/list-abs/list-pad-help.pd trunk/abstractions/footils/list-abs/list-pad.pd
Modified: trunk/abstractions/footils/list-abs/list-pad-help.pd =================================================================== --- trunk/abstractions/footils/list-abs/list-pad-help.pd 2008-11-26 19:38:31 UTC (rev 10393) +++ trunk/abstractions/footils/list-abs/list-pad-help.pd 2008-11-27 07:16:15 UTC (rev 10394) @@ -1,47 +1,30 @@ -#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; +#N canvas 272 125 544 509 10; +#X obj 159 285 list-pad; +#X obj 159 335 list trim; +#X obj 159 313 list prepend set; +#X msg 62 209 bang; +#X msg 212 253 a b c d e f; +#X msg 159 211 1 2 3; +#X msg 206 210 1 2 3 4 5 6 7 8 9; +#X text 111 417 Using an idiom by Michal Seta; +#X msg 125 211 1; #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 obj 50 29 list-pad; +#X text 315 256 <= pad to these values; +#X obj 212 233 loadbang; +#X msg 159 380; +#X text 97 105 The list of padding values is provided through the second +inlet.; +#X text 96 149 The result list consists of the first list padded with +the respective values of the second list.; #X connect 0 0 2 0; -#X connect 0 1 4 0; -#X connect 1 0 18 0; +#X connect 1 0 13 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; +#X connect 8 0 0 0; +#X connect 12 0 4 0;
Modified: trunk/abstractions/footils/list-abs/list-pad.pd =================================================================== --- trunk/abstractions/footils/list-abs/list-pad.pd 2008-11-26 19:38:31 UTC (rev 10393) +++ trunk/abstractions/footils/list-abs/list-pad.pd 2008-11-27 07:16:15 UTC (rev 10394) @@ -1,20 +1,21 @@ #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 216 113 list; +#X obj 216 140 list length; +#X obj 149 190 list split; +#X obj 228 43 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 obj 149 166 list; +#X connect 0 0 6 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; +#X connect 3 1 7 1; +#X connect 4 0 8 1; +#X connect 6 0 7 0; +#X connect 6 1 8 0; +#X connect 6 2 7 1; +#X connect 6 3 1 0; +#X connect 7 0 5 0; +#X connect 8 0 3 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.