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.
-----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 [list split 2]?
fgamsdr IOhannes
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 zmoelnig@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 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 [list split 2]?
fgamsdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlBsCRsACgkQkX2Xpv6ydvS4awCg3giaFDQ+cFUxbtUFTDBHCZb7 xjMAoIVsyuWUDlM7PgUqmZFUPVk4qpY3 =1DTh -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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 adrcki@gmail.comwrote:
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 zmoelnig@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 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 [list split 2]?
fgamsdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlBsCRsACgkQkX2Xpv6ydvS4awCg3giaFDQ+cFUxbtUFTDBHCZb7 xjMAoIVsyuWUDlM7PgUqmZFUPVk4qpY3 =1DTh -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Oct 3, 2012 at 12:49 PM, Alexandros Drymonitis
adrcki@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, Alexandros Drymonitis wrote:
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
ah i see. i misunderstood the question then.
fgamsdr IOhannes
It does. Thanks a lot.
On Wed, Oct 3, 2012 at 1:00 PM, i go bananas hard.off@gmail.com wrote:
not sure if there is a super simple way to do this, but this patch looks like it works:
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 [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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
woah....hang 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 !
Le 03/10/2012 14:03, i go bananas a écrit :
woah....hang 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 account-management -> http://lists.puredata.info/listinfo/pd-list
You can try this one. ++
Jack