Forums > MaxMSP

bind pattr to a list object?

Aug 06 2010 | 1:24 pm

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)

Aug 06 2010 | 7:12 pm

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].

Aug 07 2010 | 10:05 am

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.

Aug 07 2010 | 12:03 pm


-- Pasted Max Patch, click to expand. --

Aug 10 2010 | 9:21 pm

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!

Aug 11 2010 | 4:32 am

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…


Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP