[PD] splitting a list into pairs of two

Alexandros Drymonitis adrcki at gmail.com
Wed Oct 3 11:18:04 CEST 2012


Hi all,
I'm trying to get pairs of two out of a list using two [list split] (I
tried to reproduce the patch with ASCII, but it's getting a bit
complicated, so I've attached it).

I'm sending a list [1 2 3 4( and I want to get
1 2
2 3
3 4
separately but I get an additional 4 4 in the end. Meaning, in the Pd
window I get the following printed out:

1 2
2 3
3 4
4 4

How can I avoid that last couple of numbers? I guess it shouldn't be
difficult, but I just can't see it.

Thanks
 ------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121003/a6dd74fd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list_pair.pd
Type: application/octet-stream
Size: 412 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121003/a6dd74fd/attachment.obj>


More information about the Pd-list mailing list