saving the state umenu items
-
- Posts: 76
- Joined: Fri Aug 24, 2007 4:14 am
saving the state umenu items
How would i go about saving the state/contents of umenu items? they dont get saved with live (im talking about in a finished patch)
alternatively, is there any way to add your own entries to the live.menu device, seems you can only select from menu items you hard code yourself, is this right?
thanks guys, i am loving this sadly i am getting addicted and losing lots of sleep on it hehe
alternatively, is there any way to add your own entries to the live.menu device, seems you can only select from menu items you hard code yourself, is this right?
thanks guys, i am loving this sadly i am getting addicted and losing lots of sleep on it hehe
Re: saving the state umenu items
Open up the inspector of the umenu and type, paste or direct it to a folder that has specific items.
here is an example:
<pre><code>
----------begin_max5_patcher----------
583.3oc2W97aaBCEG+L4uBKNyhv.4GLsKsZWlTOsqSSSDiSxqxXGAlzzU082
97OfPZiSaWJMQKGxK3me177m2WYieXfm+LwFZkO5ynef77dXfmmwk1gWSaO+
hrMDVVkIL+5BJu1Ov1Cja7Ilc6mha8MWvk7rBpomqJgLF5ZAKusadcAvYToY
1vcNE0xVuwMdk2upM2P+rw2pLIYIvW7qRJQZ6KBGNLL.kjps3PSC7zggaGiN
ipfeaxHSrV212n9kXmGefK8CP9leaGLHoEMIgufS0cFnMx6DcOurj10yrLhf
ql.83ebv.sI3MBWhnPgWYKqjzMl0n+WPWWCrbz8h5RTVcNHPz4yUD.sjVRaC
mAbJQTyMiIZ+RTR+UhBOb4.iw5JvDS4H0TMhRegpQOhou6PWFM5UV0nuIyX.
ouV7SLxuH6eS1WKVtXlMzvgwAZSh1pL3WWwpWnDAST9ByPOhyabgywmRblL5
xglNEmImAwYxEq1L5zqMSFeA.yuRWCDJZMsTBDEqXPAHc.3zCy2ifoKg7bJe
23boYs6.L09mKN+wcbxUlCZkBzMvZpCbL4TJ2FYNUEa0aSsMRee5M74RuYA6
7RQwgP6Y3TlHCYSG+eAY4z6TXZOvthUuPsl+iqMGOlO9KxIJiNLJGGuyA1ih
O5OEuBVv0apr8o9lR.2EjvmPHk7wxHyzYtRvytdmIgz9eJ3pTWsfzN0Mr.0k
T4zJIvyjffuSLQOIltMzay4BHekPcsps2hyYQ7eIivugLBejYjpwiC9KI58c
ZC
-----------end_max5_patcher-----------
</code></pre>
here is an example:
<pre><code>
----------begin_max5_patcher----------
583.3oc2W97aaBCEG+L4uBKNyhv.4GLsKsZWlTOsqSSSDiSxqxXGAlzzU082
97OfPZiSaWJMQKGxK3me177m2WYieXfm+LwFZkO5ynef77dXfmmwk1gWSaO+
hrMDVVkIL+5BJu1Ov1Cja7Ilc6mha8MWvk7rBpomqJgLF5ZAKusadcAvYToY
1vcNE0xVuwMdk2upM2P+rw2pLIYIvW7qRJQZ6KBGNLL.kjps3PSC7zggaGiN
ipfeaxHSrV212n9kXmGefK8CP9leaGLHoEMIgufS0cFnMx6DcOurj10yrLhf
ql.83ebv.sI3MBWhnPgWYKqjzMl0n+WPWWCrbz8h5RTVcNHPz4yUD.sjVRaC
mAbJQTyMiIZ+RTR+UhBOb4.iw5JvDS4H0TMhRegpQOhou6PWFM5UV0nuIyX.
ouV7SLxuH6eS1WKVtXlMzvgwAZSh1pL3WWwpWnDAST9ByPOhyabgywmRblL5
xglNEmImAwYxEq1L5zqMSFeA.yuRWCDJZMsTBDEqXPAHc.3zCy2ifoKg7bJe
23boYs6.L09mKN+wcbxUlCZkBzMvZpCbL4TJ2FYNUEa0aSsMRee5M74RuYA6
7RQwgP6Y3TlHCYSG+eAY4z6TXZOvthUuPsl+iqMGOlO9KxIJiNLJGGuyA1ih
O5OEuBVv0apr8o9lR.2EjvmPHk7wxHyzYtRvytdmIgz9eJ3pTWsfzN0Mr.0k
T4zJIvyjffuSLQOIltMzay4BHekPcsps2hyYQ7eIivugLBejYjpwiC9KI58c
ZC
-----------end_max5_patcher-----------
</code></pre>
-
- Posts: 54
- Joined: Thu May 01, 2008 9:06 am
Re: saving the state umenu items
FYI I found a workaround to solve this problem using live.numbox:
<pre><code>
----------begin_max5_patcher----------
961.3ocyW1zaiaCDF9r8uBBcpEvUqEscrbO0FfBz68XRP.sz3X1UhTfj1Nt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caO6sxKzzRGd5j+N
jlOu8iSVV7nXYMgZCRYu3w43+YHUGRL20RHsUuVKyyAU6iZUJyqzH5p8hoSi
mgt9bx04gOdz9EdBEagtwChmcVscogAcdfKHN3us33p8p4eFz8Z8pSVu+mvp
SVut8pSJWeaNE9x2G9u.uAtQvB
-----------end_max5_patcher-----------
</code></pre>
<pre><code>
----------begin_max5_patcher----------
961.3ocyW1zaiaCDF9r8uBBcpEvUqEscrbO0FfBz68XRP.sz3X1UhTfj1NtK
1+6c3PIGYWIGm3jE8h9X3Wy7LCeE02FNHZo9YvFw9U1crAC91vACHSdCCpee
PTo34rBgk5VTltrDTtnQg1bvyNx9ep2wbZVkArfYKv1f8ZCy5DNvxVoMrcqA
EauFsI1BeIqPaAlfYAGSnxYNeqFPWg2jJVANLCSqhuWcu518r+vHyX2hFKEn
A.e62bxRnPpfzYwnOcuZ2tc3CEZicuxs1aqwG88JSuQQN5M0FUaJkpBvQQUR
sQYNEK5k+8ujF8RG0abM8bbs0UZkSIJAp++tQJJhZ0hU9OTKI73lATIbYqkp
mdz.Yt.v42fsx3Snqyl4uktHdL6A+H99vg9KitxzxjX1eAA9x1JJ1.LbdPtu
TndxmuvzkSa.p8PJqRakNoVw5De7KDe274iujj.4lR2RVrveaxzOX.xiYEZQ
tux0v7VCXzhUoH9HqAt445O4Lhru9kJgAiMeELyGjVF3x94qBmS+AfywD.SR
SHpxm8ofyj.NoxOpxyRkdExsPLFadHR7cDpWHyVyjVRuHuS4Ch9nBxnPx3nZ
7qB27e.a9I9lLgSXd70U7pfcna+efcCoitvvNY77tC7jdCb1s5h7lAEFgaeE
DhwHZwYOzEbFeN3LI.m4zN6fxXR56jMK23bZ0kifzyifWIF6HXRmEjoBp8ia
t9Qln2hZPIWbHlv+Xyxu+LLeAI1LYwUkgaIdz3iaElCQPqlui+vYozAg6GAk
XYAzKA6QOl2KhFwhVgaGcmsRoFJ7TBJT8RxLOTpGBoD9nv4LRrpFd4IaMcpw
iO9QYP8pFyM1aGgaTRm0sODj0Ypi5PIB4fN173taWpnw1YqMAeWsIwkFqpZA
4t5kcs135JKF04TtUZkmY1J04uR7HTJMdbU7nOOdXU6ZoJzpm5r3J4gndV3y
AJ7CTekNkv47bc9Yf4Jcu9p1jCl9FIUAz6PsU.jWHK6M83fpd8Y34JsBBezE
2hG5.sst41abONcFqt1ceTCzeenBIw16ce0iWcP7zW1V++PG11c7d7IuSURo
+zPAkfVh.sb3iNZKoHl5KTYy4unN1353OBcpW9V0dmDTcaO6sxKzzRGd5j+N
jlOu8iSVV7nXYMgZCRYu3w43+YHUGRL20RHsUuVKyyAU6iZUJyqzH5p8hoSi
mgt9bx04gOdz9EdBEagtwChmcVscogAcdfKHN3us33p8p4eFz8Z8pSVu+mvp
SVut8pSJWeaNE9x2G9u.uAtQvB
-----------end_max5_patcher-----------
</code></pre>
Re: saving the state umenu items
dang, can't even just make one in javascript with the choices... maybe a feature request?
-
- Posts: 68
- Joined: Tue Sep 01, 2009 4:07 pm
Re: saving the state umenu items
Here is one "fun" way to do such a thing:
<pre><code>
----------begin_max5_patcher----------
929.3oc6XEsaZCCE8Y3qHJZOxPwNMIP0zz19MlpPFhA7VhcTrCCZU+2msSLM
PSLAHC0VsWRv9Zt93y8dO1wOMbf6b1VL204dme5LXvSCGLP2kpiAUsG3lh1t
HAw0CyMEy4nUX2Qk1D3sBc+nrLLM14S.ikLjXwZBc0rb7BQ4L.A9i8F4.7ln
dE5oaDN1y4gp+CIV6K17e8YvTiiVxnBJJEqM88bBJw4GrjXiYZQJglfEZ3Ae
oSVgvzKnlm3jG0dBnl8xtKGoXWFtDlttNOnr77vgpGi5HyPw+QB7WQLOl3rJ
mUj4zAlYxcpmAZ5ALoEhIr+HF34RLi5exIGu5zDSHP8zOxJwD7djXZqdZQBF
kagX7gJtHRWC4em0JI36sJoSnwHVicXxG1nmo5Tk.M8LEZkd79vQOHgElIRq
t3qKnBirwLS+vQLDtEhohL7NMwL4CxVSILT7bDsK5u5po.axuWj5KnWHE8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 01, 2008 9:06 am
Re: saving the state umenu items
That's another way to do it, I think mine used less objects though
-
- Posts: 68
- Joined: Tue Sep 01, 2009 4:07 pm
Re: saving the state umenu items
ah, maybe I didn't understand what you wanted to do. In yours the contents of the umenu will not be saved when closing/reopening the set.
-Ben
-Ben
-
- Posts: 68
- Joined: Tue Sep 01, 2009 4:07 pm
Re: saving the state umenu items
Lets clarify.
It is correct that if all the OP wants to do is send a single integer to umenu (setting the position), the other two examples will work just fine.
The OP mentioned he wanted to save the "state/contents". If you are not using the prefix attribute (which is a file path) with autopopulate turned on, the contents will not be saved. The OP did not mention how he was populating the umenu. If you are adding elements to the umenu in other ways, as in my patch, your example will not work.
-Ben
It is correct that if all the OP wants to do is send a single integer to umenu (setting the position), the other two examples will work just fine.
The OP mentioned he wanted to save the "state/contents". If you are not using the prefix attribute (which is a file path) with autopopulate turned on, the contents will not be saved. The OP did not mention how he was populating the umenu. If you are adding elements to the umenu in other ways, as in my patch, your example will not work.
-Ben
-
- Posts: 54
- Joined: Thu May 01, 2008 9:06 am
Re: saving the state umenu items
Ah yes that's the confusion, my method is assuming that you are going to poll and update the contents of umenu when the patch loads. The patch I developed this for pulls the track names from the live set and populates the umenu with them.