Editing Specific Parts of a JSON File Being Recalled by Pattrstorage
Hi All,
I've made a patch that uses 4 unique instances of the BEAP object called 'Granular'. I'd like to be able to send this patch to others in a single folder which will include the maxpatch, a .json file, and a folder of audio assets that will automatically load into the 'Granular' objects when the patch opens. It's very straightforward to load up audio files into the patcher on my own machine using pattrstorage to recall a json file, however there doesn't seem to a be a straightforward method for the pattrstorage object to read relative folder paths (ie '../AudioAssets/synthSample.wav') from a json or xml file.
I have a solution for generating specific folder structure names on any computer however I am looking for a way to edit specific components of a json file being recalled by pattrstorage. How do I edit specific parts of a .json file being recalled by pattrstorage?
Thanks in advance!
Nathan
There are many other ways of doing this, but I'd recommend checking out Max Projects. If you put the json file and audio assets in the Project, they will be found automatically by a patcher in the same Project.
More on Projects here:
https://docs.cycling74.com/max8/vignettes/projects
Excellent, thanks!