an easy way to store, get and set pointers with [list store] instead of [list-idx].
pointer-list-store-test_b.pd
-
access pointer with list store
-
just realized this is like a simpler [list-idx].
and i neither need [list-idx] nor [list store] for getting a pointer with a certain id
pointer-list-store-test_c.pd
-
If you open [list-idx] you see that it is basically this. I believe using [list store] is still the most efficient.
-
thank you. the advantage of [list-idx] seems that it can handle negative values, and doesnt output anything if the index is outside of the list range. and it can have an argument for the id. yes, i can imagine that [list store] is still the most efficient (didnt measure it).
-
@Jona Wouldn't this do the same as [list-idx] but using [list store]?
list.split2.pd
(the index is hot and the list cold though, whereas list-idx is the other way around, but it can be easily changed) -
thats very nice. for me it somehow makes more sense if the id is the hot inlet, that way also the id argument isnt needed anymore.
i think its a nicer list-idx with less subpatches and objects. but i have to admit i never used the extra functionality of list-idx and in most of the cases i can just use list split for the id.
list-ida.pd