[PD] moving a list element

Raphaël ILIAS raphael.ilias at yahoo.fr
Wed Apr 30 02:19:08 CEST 2008


hi !

i submit you a little abstraction i made using the list-abs/ abstractions... i don't know if objects doing that already exist, but the idea is to move one element in a list, without changing the others.
i made it to change the rendering order in a Gem-based patch, in the spirit of the "layers" in many well-known image manipulation softwares. This should explain why it only works with floats lists. I also did not take care of the cases you try to move an element out of the "range" (i mean the list length)
maybe looking at the attached patch will be more meaningful than my poor english...
every comments are welcome (even to say it has already been made !)

ciao

raphaël

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080430/5fc2094f/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list-order-test.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080430/5fc2094f/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list-ordre.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080430/5fc2094f/attachment.txt>


More information about the Pd-list mailing list