Forums > MaxMSP

help with storing text with pattr

June 30, 2013 | 10:04 am

Hi!
I’m very new to the pattr object. I have a hard time getting it to do what I try.
I want to store settings in my patch that a standalone user needs to be able to edit. This are ip-addresses, audio channels, midi device names and so forth. so having a separate xml file that you can edit should be perfect, right?
Any help to point me in the right direction is greatly appreciated. I seem to only be able to store numbers? Also it’s hard to understad the relationship of pattrhub, autopattr and pattrstorage. How do i make pattrstorage see my objects with scripting names?

Thanks for the help. Here is a simple snip with the things I’m trying to do. I hope im doing this "paste" thing the right way!

– Pasted Max Patch, click to expand. –

June 30, 2013 | 10:19 am

Hi Iisak !

ive got some thoughts .
I would use JSON instead of XML . first of all ,you can easily create such data/file with DICT object . Where u can and you should format your data in such style .
Then you can easily PATTRize you DICT , its very very helpful for many data soulutions . just take a look at the help file .


June 30, 2013 | 12:16 pm

thanks KRISW! This got me forward. I’m then using zl nth to get to the values.
What do you mean by PATTRizing my DICT?


June 30, 2013 | 12:54 pm

great !
with PATTRizing i mean , you can use pattr family to store your DICT data :) sorry


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