Forums > MaxMSP

Strange behavior of [pattrstorage]

August 3, 2012 | 6:42 pm

Hi All,

I’m trying to implement a simple function for [pattrstorage]: make it read and write preset file using relative file name like "preset.json". The idea is passing a (path) message to [thispatcher] object to output the absolute path of current directory, then concatenate it with the file name.

However, after I finished it, I found it doesn’t work. Sometimes it cannot write to the file, sometimes it can write to the file but cannot read from the same file. Storing states to slot works without any problem. A similar patch with path name hardwired (hence using an absolute path) also works. I wonder what problem my patch (attched) has.

Attachments:
  1. testpattr.maxpat

Viewing 1 post (of 1 total)