< Back to IRCAM Forum

MuBu write commands: filepath strange behaviour

Dear MuBu team,

I get a strange behaviour when trying to write mubu data files or mubu tracks. If I specify the filename e.g. [writetrack loudness loudness-data.json], I would expect the file will be recorded in the top level patcher’s folder, but it doesn’t, or it may record it once there, and then elsewhere, generally in the Max 8/Packages/MuBu For Max/help folder, or even sometimes in the extra folder or not saving it anywhere at all. In addition, if I repeat the same write command, to update the file, it will stop updating after a few hours.
I have tried to specify and add the whole written path in the message, but it doesn’t seem to work either.
Did I miss something or what ?
Could it be caused of my MacOS Monterey ?

Best regards
Roland


----------begin_max5_patcher----------
3504.3oc6bs0iaaiE94I+JDbWfEXgGGQp6ceosaA5VflE6UrOjVXHKQaqLxh
F5RlY1hle66gjRxjxTxRdjyzBzD.kIjTjG9wuyMRp4meycK1PehTrv3KMduw
c28yu4t63EwJ3t5++cKND9TTZXAuYKhnGNPxJWrTTWI4oRd412ajr03YZkQL
M6OVZrMIK1nbOA9gTBTlQnQAILOZeyalljQhnUY7W2ptvi4jBn2CKSnYq02h
vxn8IY6VmShJEBtaPvJrisUfio3O1NKMbrQqf+A4Ztxbogq0JSieptKxpNjj
kRJ4SHTcgap1rIkHWRRLehQ27g6Q1KN8tzpxlW1jU3u7l2vdr7EBfl2aTD9Q
BGy3SRiB5Axi6I4DsPF9hPFteHyxTfX1Ah+XgXPECopAL.8NAXBroHIlH2sZ
gQYPC2Cn0zq6hnozbg.YtJv02E6Y6XF3aZEfWNxh3x4LtLXUuL.L4bi3vxPN
Ad9WArYHLH9VnUHriI1Ov0y2wyxksR3vqy14EQZCt8bVz8FkU4YFgUwITCZ1
h9mud9d74qoiDKC6+hlg9y2Lrjta2okYcxus44FYpmMV1MOGdxHI58XPA0J.
4gGHkj70jrvZ.nQuQz7xmORDR1hDFY6ZzANPJJB2QNaY8w7jRRYdXzCFozp3
LnYs+v8LchUenXvEaXsNvw2x1C3zHel1JfU..51koawX..OvsOnCeNzY4ML1
cF9bcfSF4QXzNCaJoEOeXCMcfYOL2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FHmQLPVy
xHgFyHYKuqCc1tma6Pq1lCIwGoIYk0TeGeqyub89fx4YerotrOvaOTfWcKcc
mPCwl7ysNfe0l4+mygBzKBJvigXgmCJLuSPWZ8Vk9MWSxQMzl2BpFZL5S3fY
.eQVelLQfFk1i4bLRle1.uwLkj1TQEWhct29rwny80uyc0+76oe+2Q+t2Oe9
FWJBonia3SG1J6B69u32y70uijUuwUM2FdUjP5C1p6Vd19UsIps8SBP8yKyF
gDeDaHKOr3CMC9AGG4MKdg529lsicfI+S.zl+qsF9O4isbrT1Nr5WCOwOkM.
K078qw9ERS2OGs1128yYSYaYWVSjxgZ6dCwgj3SKSZdGYhW6hw2JPcCD5ano
wF+cJKjqjgVRj2RVHJcoeW9LShx6r+gKM9Muy6qO5dClveJaGchnbTshKU3H
+LDMW46L+yvwhzSalZ9qvYZylab8J3c9rU6puZ44ZK1tPKeaKDeJY2Qm6JUU
uluU0wqfqdROxWJz2K4oWGKXXp97tBF9j2XHq+9B47XPVJG7QYUn9Tp5iPXO
aDhOrYyuu9OVE4wpvFLaKOOTjl.Qh8eYgoMz5zE1.xYQVNv3jOOaj34CjD6F
12jVQF1qTXTDL.p+VY.wXm7CkpM9vfZBKZlEvuKmPxlrDx2GQG9u7xX+Dh+a
cwYU33eZXeGD.xjkMFPYxU4bBvHGNNhjU4lt.JRtomu.327Ku4+y4vl0s
-----------end_max5_patcher-----------

Max has always had this problem. Bare file names are relative to the Max process’ current directory, which is set to the last opened help patch dir.
Use [thispatcher] path, regex, sprintf to work around it.

Ok thanks a lot Diemo, this is why files are recorded in odd places.
Using path command and thispatcher, writing message to MuBu works if formulated as so :

For a track
[writetrack trackname “…path…/filename.json”]
or [writetrack trackname “…path…/filename.txt”]
(path as symbol “between quotes”, because of spaces symbols)

For the whole mubu
[writeall “…path…/filename.mubu”]
(does not seem to work without .mubu extension)