[PD] Working with lists
Hello all, I'm trying to figure out the best way to deal with lists in Pd but some things are still not clear. I have a table that changes its content on the fly, e.g. taking input from somewhere else and I'm using a select at a determined point to dump the table as a list of values using the [tabdump] object. Then I would like to interfere in some values in this list, either randomly or at a given position, but the fact is that since this list is a bit big (30+ values) it doesn't seem the best way to unpack it (my object would be gigantic, I think) and deal with the single values. Is there a way to change a specific value in a list without unpacking it in the first place? Many thanks! -- Pedro Oliveira www.partidoalto.net soundcloud.com/iburiedpaul ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Working with lists
Hello all, I'm trying to figure out the best way to deal with lists in Pd but some things are still not clear. I have a table that changes its content on the fly, e.g. taking input from somewhere else and I'm using a select at a determined point to dump the table as a list of values using the [tabdump] object. Then I would like to interfere in some values in this list, either randomly or at a given position, but the fact is that since this list is a bit big (30+ values) it doesn't seem the best way to unpack it (my object would be gigantic, I think) and deal with the single values. Is there a way to change a specific value in a list without unpacking it in the first place? Many thanks! -- Pedro Oliveira www.partidoalto.net soundcloud.com/iburiedpaul Hello Pedro, Can you edit the values while they are still in the table? It's hard to say what would work best without seeing an example. -Ben ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Working with lists
hi you could make a little walk through the extenal list-abs by frank barknecht, which is pd-vanilla and shiped with pd-extended. there you should have a solution for your wish. you could cache the list for example see attached patch all the best der.brandt Hello all, I'm trying to figure out the best way to deal with lists in Pd but some things are still not clear. I have a table that changes its content on the fly, e.g. taking input from somewhere else and I'm using a select at a determined point to dump the table as a list of values using the [tabdump] object. Then I would like to interfere in some values in this list, either randomly or at a given position, but the fact is that since this list is a bit big (30+ values) it doesn't seem the best way to unpack it (my object would be gigantic, I think) and deal with the single values. Is there a way to change a specific value in a list without unpacking it in the first place? Many thanks! -- Pedro Oliveira www.partidoalto.net soundcloud.com/iburiedpaul ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list #N canvas 214 47 533 390 10; #X obj 153 99 list length; #X obj 68 165 list-enumerate; #X msg 69 187 \$2 \$1; #X obj 69 208 unpack 0 0; #X obj 49 117 t l l l; #X obj 49 97 inlet list; #N canvas 0 0 450 300 (subpatch) 0; #X array cache 100 float 3; #A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; #X coords 0 1 99 -1 200 140 1; #X restore 307 29 graph; #X msg 152 119 \; cache resize \$1; #X obj 69 229 tabwrite cache; #X text 174 231 for manipulating use tabread/tabwrite; #X connect 0 0 7 0; #X connect 1 0 2 0; #X connect 2 0 3 0; #X connect 3 0 8 0; #X connect 3 1 8 1; #X connect 4 1 1 0; #X connect 4 2 0 0; #X connect 5 0 4 0;___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list