Re: [PD] splitting a list into pairs of two

2012-10-03 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-10-03 11:18, Alexandros Drymonitis wrote: 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). how about using

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread Alexandros Drymonitis
But if my list has an odd number of elements, then I lose the last one, don't I? On Wed, Oct 3, 2012 at 12:45 PM, IOhannes m zmoelnig zmoel...@iem.atwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-10-03 11:18, Alexandros Drymonitis wrote: Hi all, I'm trying to get pairs of two

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread Alexandros Drymonitis
Plus, the pairs I get with [list split 2] are 1 2 3 4 where I want to get 1 2 2 3 3 4 and if my list has got 5 elements 4 5 in the end.. On Wed, Oct 3, 2012 at 12:49 PM, Alexandros Drymonitis adr...@gmail.comwrote: But if my list has an odd number of elements, then I lose the last one, don't

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread i go bananas
not sure if there is a super simple way to do this, but this patch looks like it works: list_pair.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread Alexandros Drymonitis
It does. Thanks a lot. On Wed, Oct 3, 2012 at 1:00 PM, i go bananas hard@gmail.com wrote: not sure if there is a super simple way to do this, but this patch looks like it works: ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Oct 3, 2012 at 12:49 PM, Alexandros Drymonitis adr...@gmail.comwrote: But if my list has an odd number of elements, then I lose the last one, don't I? no. that's what the last outlet of [list split] is for. On 2012-10-03 11:58,

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread Lorenzo Sutton
Hi the attached should do it... The version on the right should be more general allowing to specify the grouping size, and would work with non-necessarily-numeric list. Lorenzo On 03/10/12 11:18, Alexandros Drymonitis wrote: Hi all, I'm trying to get pairs of two out of a list using two

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread i go bananas
nice Lorenzo ! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread Lorenzo Sutton
On 03/10/12 13:32, i go bananas wrote: nice Lorenzo ! Thanks.. well actually for the float version I think we had the same idea :) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] splitting a list into pairs of two

2012-10-03 Thread i go bananas
woahhang on you did that patch without seeing mine??? it's almost identical...right down to the numbers in the example message box someone call Fox Mulder! this is definitely an X file ! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and