Write and read with coll

Learn about building and using Max for Live devices.
Post Reply
Ottoroots
Posts: 1
Joined: Sat Jan 14, 2023 10:09 pm

Write and read with coll

Post by Ottoroots » Sat Jan 14, 2023 10:52 pm

Hi,
I am totally lost with files path in Max.
Trying to understand my problem :
- I create a simplistic patch with only one coll.
- I add an empty file (test.text) in my project with the « add a new file » button from project window.
- Max creates the file and stores it here : ~documents/Max 8/Max For Live Devices/project/ myproject/data.
- I manually fill my coll with datas then use the message : write test.
- Max duplicates my original file test.text here : Macintosh HD/applications/Ableton Live 11 suite/Content/s/Apps-ressources\Max (the folder which contains the Max app) to store datas of my coll (??? Why? This duplicata is specified nowhere in Max documentation! This file has the same name (test) but without extension.
- when I use the message « read text » the datas are correctly sent to my coll from this new file.
- during this time my original file test.text remains unchanged : empty.
- But If I fill manually test.text, now when I use « read test » the datas of test.text are used.
- Even weirder when I freeze my patch, again Max duplicate the file test (without extension) and store this copy here : ~documents/Max 8/Max For Live Devices/project/ myproject/other.
- from now its panic : when I use « write » it uses the first duplicata to store and when I use « read » it uses the second one to fill my coll.
- since the beginning it never used the same file to write and to read.

I did not change any search path.
I am lost for 3 days. I am going to be crazy. What am I doing wrong?

doubleUG
Posts: 250
Joined: Sun Apr 24, 2011 7:19 am

Re: Write and read with coll

Post by doubleUG » Mon Jan 16, 2023 1:21 pm

I can´t answer your question, but provide some "workaround". You can push you coll into a dict with "parameter mode" enable. So you data is saved with the Live Set. When loading you patch you have to pull it from dict to coll.

<pre><code>
----------begin_max5_patcher----------
602.3ocuV0rahCCD9bPh2AKeNfRHIP5da28QX2aUqhbRbAWkXGY6jkpp8ce8
OwAJPJoHZO.FOyXOy227i404y7f4r8XAD7Mvi.OuWUR7LxzR7bB7f0n8EUHg
wPHE+WV9yP+dcR7doQdEoCuTtiHJwcjB7fAz1ZVqrBKMGOxIlTZNk5pV7vfs
VCkuzfswDLGQ2B8APBU5V.+wYcCRVriP2lwwER6ABi2rLvGDlZV1X9dUvxfC
GRENDpKZBMB+27Y5U0h+jYgZrPf1hOmFZZE6xjrrBVUEXwhE+FKjivEgWfKR
GmKlDxWEGYHffnq.8UeFPupJ6INq9VA+5aE7q1jZfa5ZK3e3SC7mT82g3TTs
IHgkjB44jhVJ3WRFerNh3KPDwiSD56ivnH9K5FhgOSgdhhSzKIIWicbREnNb
YlJfT2TFRJ4j7Vocdg2ABxChqywlfOv2IpAwU7hDyyvTTdE93T9wZqQMMN8A
V057waBfAO+dwPGppEydxIePwwNiP6HBxoQywVTwnauXB8MVI1w3xqalKqE0
qqud6vOtqcegfUfu+CvO+.8aQ2Z+VbnsQKIVuD+k0tM.1ILf4R8UguCfmb2T
bncRahgCRRu1aL2itIk2UUtLpV75wJhrAf5gX5YuoafgVwIjsf0xKbTP+awf
iPRoheITjr20ON7Hk1nwypS1coSwcw2M2s9q0cQSwcgWzc84R0zwNL2k4sdR
0g7Liq2m5a2Sn18I18bb2PwhsFBh3ppXopvqkaGZsec+aLvZVIlSaIt+OT+3
WnoITOjSzfrnxzrNelxf+C7HRcK
-----------end_max5_patcher-----------
</code></pre>
copy the text, open Live > drag in empty M4L device > open Max editor > paste > save M4L device
https://docs.cycling74.com/max8/vignett ... ng_patches

https://doubleUG.bandcamp.com/releases

Post Reply