<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Do you want every list to have exactly four elements, or do you want '45' to always be the last element?<br><br>Either way you have two idioms you can use to build the list:<br><br>1) [list prepend] with its output feeding back into its right inlet.&nbsp; You collect this into the right inlet of another [list] object, and bang it out when you've got the entire list (and bang the right inlet of [list prepend] to reset it.&nbsp; The benefit is that it's easy to patch; the drawback is that it's slow because you're copying the list twice for each element.<br><br>2) message box, using the "set", "add2", and bang methods.&nbsp; Use "set" to clear the message box, and "add2 $1" to add each incoming float to the message.&nbsp; Then send a bang when you want to output your list.&nbsp; The benefit is that
 it's fast.&nbsp; The drawback is that if you screw up and build, say, a million element list while the canvas containing the message box is visible Pd, will probably freeze.<br><br>Then you just need a [moses], [select], or other branching object above one of the two options above to output and reset the list.&nbsp; (Plus a counter if you want four-element lists.)<br><br>-Jonathan<br><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, January 23, 2014 1:46 PM, Peter P. &lt;p8rpp@aol.com&gt; wrote:<br> </font> </div>  <div class="y_msg_container">Hi,<br><br>this might be totally simple, but I am wondering what is the most<br>elegant way of creating a
 list out of individual messages<br><br>12<br>23<br>34<br>45<br><br>meaning a list which holds four items, and which is always created at<br>the number '12', and sent out at the nu,ner '45', yielding:<br><br>list 12 23 34 45<br><br>so some kind of parallelization depending on a header value (12).<br><br>thanks for any pointers<br>best, P<br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div> </div></body></html>