[PD] sort 2 lists

José Rafael Subía Valdez jsubiavaldez at gmail.com
Mon Dec 15 15:20:47 CET 2014


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 at 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 at 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.
>>
>> 1. is the index,
>> 2. 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141215/d34d3104/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sort2-JRSV2.pd
Type: application/octet-stream
Size: 4139 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141215/d34d3104/attachment.obj>


More information about the Pd-list mailing list