Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
wish 3. is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote:
Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi José, thank you for your answer. Would it be possible to post the patch in which you did this ? Achim
Am 15.12.2014 um 12:36 schrieb José Rafael Subía Valdez jsubiavaldez@gmail.com:
I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
- is the index,
- is the first list (the one that the sorting is based on) sort it as you wish
- is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote: Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- José Rafael Subía Valdez www.jrsv.net
=>> 15GB Online Storage + 5GB über diesen link: https://copy.com?r=RnBKpx
Hello Achim,
I am sending you the patch that does this, but I am sorry it is in a complicated context because I just took it out of the main program. It is a bit more complicated than the vague description I sent you earlier (better see paper)
but I put down your 2 lists as messages and it seems to do the trick.
ps. the code is almost 3 years old and I do think it could be done easier and more efficiently, but I hope it helps.
cheers
On Mon, Dec 15, 2014 at 11:46 AM, achim@bornhoeft.org wrote:
Hi José, thank you for your answer. Would it be possible to post the patch in which you did this ? Achim
Am 15.12.2014 um 12:36 schrieb José Rafael Subía Valdez < jsubiavaldez@gmail.com>:
I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
- is the index,
- is the first list (the one that the sorting is based on) sort it as you
wish 3. is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote:
Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- José Rafael Subía Valdez www.jrsv.net
=>> 15GB Online Storage + 5GB über diesen link: https://copy.com?r=RnBKpx
oops, sorry about that, I ment to say that if you put down the two lists you can follow what i did, not necessarily the sorting that you want, but its a start, and actually, what you want is easier (I think), but take a look.
let me see if I can make a simpler example and send it
cheers
On Mon, Dec 15, 2014 at 11:36 AM, José Rafael Subía Valdez < jsubiavaldez@gmail.com> wrote:
I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
- is the index,
- is the first list (the one that the sorting is based on) sort it as you
wish 3. is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote:
Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- José Rafael Subía Valdez www.jrsv.net
Got a bit caught up on this, its fun
but this is the simplest I can provide now. This patch does exactly what you wanted.
cheers
On Mon, Dec 15, 2014 at 1:04 PM, José Rafael Subía Valdez < jsubiavaldez@gmail.com> wrote:
oops, sorry about that, I ment to say that if you put down the two lists you can follow what i did, not necessarily the sorting that you want, but its a start, and actually, what you want is easier (I think), but take a look.
let me see if I can make a simpler example and send it
cheers
On Mon, Dec 15, 2014 at 11:36 AM, José Rafael Subía Valdez < jsubiavaldez@gmail.com> wrote:
I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
- is the index,
- is the first list (the one that the sorting is based on) sort it as
you wish 3. is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote:
Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- José Rafael Subía Valdez www.jrsv.net
-- José Rafael Subía Valdez www.jrsv.net
Hi José, thanks a lot for your help. I will try to adapt it to my needs and drop you a note when I succeed :-) Best, Achim
Am 15.12.2014 um 15:20 schrieb José Rafael Subía Valdez jsubiavaldez@gmail.com:
Got a bit caught up on this, its fun
but this is the simplest I can provide now. This patch does exactly what you wanted.
cheers
On Mon, Dec 15, 2014 at 1:04 PM, José Rafael Subía Valdez jsubiavaldez@gmail.com wrote: oops, sorry about that, I ment to say that if you put down the two lists you can follow what i did, not necessarily the sorting that you want, but its a start, and actually, what you want is easier (I think), but take a look.
let me see if I can make a simpler example and send it
cheers
On Mon, Dec 15, 2014 at 11:36 AM, José Rafael Subía Valdez jsubiavaldez@gmail.com wrote: I did this for a musical interface created in a research project.
http://lac.linuxaudio.org/2012/papers/9.pdf
check the 3.3.3 point.
but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.
- is the index,
- is the first list (the one that the sorting is based on) sort it as you wish
- is the other list.
this way you have the order of the your "ruling" list set by the first two rows.
On Mon, Dec 15, 2014 at 11:01 AM, achim@bornhoeft.org wrote: Hi, I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ? Thanks a lot in advance, Achim
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- José Rafael Subía Valdez www.jrsv.net
-- José Rafael Subía Valdez www.jrsv.net
-- José Rafael Subía Valdez www.jrsv.net
<Sort2-JRSV2.pd>
=>> 15GB Online Storage + 5GB über diesen link: https://copy.com?r=RnBKpx
Hi,
On Mon, Dec 15, 2014 at 12:01:23PM +0100, achim@bornhoeft.org wrote:
I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ?
The abstraction "list-sort.pd" from the [list]-abs collection can sort in both ways.
Frank Barknecht _ ______footils.org__
On Mon, Dec 15, 2014 at 12:36:42PM +0100, Frank Barknecht wrote:
Hi,
On Mon, Dec 15, 2014 at 12:01:23PM +0100, achim@bornhoeft.org wrote:
I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ?
The abstraction "list-sort.pd" from the [list]-abs collection can sort in both ways.
Sorry, I misunderstood your question ... list-sort won't help you here.
Frank Barknecht _ ______footils.org__
Hi,
okay, to make up for my mistake, here's a vanilla solution to the problem. It also uses data structure sorting, like the latest list-sort.
The idea here might be applied to other areas as well:
We define a "pair" data structure of two floats, (x, y), then some random data is created, then it's sorted by "x", then it's printed out.
Frank
On Mon, Dec 15, 2014 at 01:08:07PM +0100, Frank Barknecht wrote:
On Mon, Dec 15, 2014 at 12:36:42PM +0100, Frank Barknecht wrote:
Hi,
On Mon, Dec 15, 2014 at 12:01:23PM +0100, achim@bornhoeft.org wrote:
I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch). Can somebody help me with that ?
The abstraction "list-sort.pd" from the [list]-abs collection can sort in both ways.
Sorry, I misunderstood your question ... list-sort won't help you here.
Ciao
Frank Barknecht _ ______footils.org__
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list