[PD] sort 2 lists

José Rafael Subía Valdez jsubiavaldez at gmail.com
Mon Dec 15 13:59:37 CET 2014


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 at 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 at 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.
>
> 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
>
>
>
>
>
> =>> 15GB Online Storage + 5GB über diesen link: https://copy.com?r=RnBKpx
>
>

-- 
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/29c07394/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SortLists-JRSV.pd
Type: application/octet-stream
Size: 5743 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141215/29c07394/attachment-0001.obj>


More information about the Pd-list mailing list