bind pattr to a list object?

Aug 6, 2010 at 1:24pm

bind pattr to a list object?

pattr can bind to an int box (as demonstrated in the documentation).

it will also store floats, ints and symbols.

what object can pattr bind to in order to store list data? (the list is of indefinite length, and contains floats, ints, and symbols in an unknown order, just any list)

#51683
Aug 6, 2010 at 7:12pm

pattr can’t interpolate symbols, so if you need interpolation, stick to floats and ints. maybe use [table] or [multislider] for these, works fine. Not sure about how to store lists of symbols in pattr, anyone else have a thought on that?

If your numerical lists are of indefinite length, go with [multislider] which will auto-adapt to the list length. However, if you store slots which have different list lengths, interpolation also will not work. To ensure lists are all the same length (if you need that) use [zl slice].

#185425
Aug 7, 2010 at 10:05am

i do not need to interpolate anything at all.

i just want to collect list data (containing symbols ints and floats) into pattr objects, save the data using pattrstorage, and output data from pattrs when pattrstorage objects are loaded with xml files.

#185426
Aug 7, 2010 at 12:03pm

[textedit]

– Pasted Max Patch, click to expand. –
#185427
Aug 10, 2010 at 9:21pm

omg! textedit! how could i have overlooked that!

it works EXACTLY how i want it to work as well. it outputs NOTHING unless data is loaded into a nearby pattr storage. thank you so much pid!

#185428
Aug 11, 2010 at 4:32am

pattr stores anything, just send a list into a pattr and it will store it. There is no obligation to bind it to another object…

Stefan

#185429

You must be logged in to reply to this topic.