How do I save typed text in the Text Edit object?
Hiya I’m completely new with Max but I want to use the text edit object to label dials in my device. Its for a generic MIDI editor patch I’m making.
Now with the text edit object the user can edit the text box which is fine. But I want it so that upon save and load in Ableton it should recall the text previously typed.
Currently I type something into a Text Edit I hit save in Live. Open the Live set again and whatever I previously typed is gone.
I need it so the end user can change whats typed into the label and every time they save their live set and load it again its exactly how they left it.
I’m sure its very simple once you know how but I’m very new to this. Please help.
You should use live.-objects when you want something stored with the Live sets. If you connect the text edit object to a live.text, the text should be stored in the live.text object and you could (if you don’t wanna use the live.text as labels) recall the text from these back to the text edit objects upon loading the patch. If you wanna be abel to have spaces in the text, just activate "Output to one symbol" in the text edit object.
Hi thanks for getting back to me. I tried using a live.text like you said but again it did not save it with the live set. I've attached a picture of what I did. Perhaps I'm doing something wrong?
That is kind of weird. The text is saved with the Live set at my computer using the exact same patching. Maybe you should post your patch here.
Here’s the patch I made to test the problem:
----------begin_max5_patcher---------- 733.3ocyW1zbZCCDF9r4WgGelxXYrA2dqY58dn4VmLLBqMA0ZK4QRPIMS9uW IYYhArbgl.MWPnUeru6iVsBdZTPzR9VPFE9ovuGFD7znf.qIig.W+fnJ71hR rzNsHF7K9xeDMtYHErUYMWKfZfQBMF3r1gYqqnrRPYWJxY7dNSwvUfcceVPw kg2vKIsqoFqJVQYOrP.EpFkgRQShGGhhSLM4SscxmDGdmaMThcyzB6Coc7Me s5Pm2XR8XMzr0QQ61DitjzeaG.EOI1X84QiLeL90AGg1qfEMWFvja+La1PbI oetj3kKieiYiI7ABUcDc9pZEHt8hAmz7lbmXSShG5f5mNoCQGJSYgz3qSRTI GSVhYO7FSoLGdZRgxFJEJ+LuZYU6UfLs0djvacJzTKbRrrY17gXCJ4+YcGu2 sLWqtkeC7M7FfbQfydWuxh6mNYuitdUR2.S5VKdCVrKvOZv+AR5EUnjlTHWV URGV4d1r2xgc33zgKhWiE5.QAhE.CurDFNAbOvJMg0BrRInK0OV8x2jNT5Xo AWkqA98slas206UZfa8sNN6aTpMRi6czVElzyXTFUoSL6Dc8sCxUbgx6I5Aa 3FpjNvdUwIswh8v63YfYLtBqnb1hc9rOWUxYObZhx3ygHTIk8SyNIGRzbh2X hxtm6UlbAAD9V4ZM+kdWprF.RIsx64hBp8pYPmQ6RL0IXHSxotMYWB59SdaM mALk+bLqRUO5tBD2LAagh1lyrpQAupx3wCKK7EXCs.B2.BEsPWyTG+zy8UnA pwZqphl2zfxG5EnO1esAGchVQIDfcnP7TK0t+5rT1g+2.qDM12GUR9ZQQagE WA+vWTIAjJJydIoyblt2bdQesJthRp45WAbRH7tdO1NUEY7F5unHyi3mijPy lMISusYo1B5M+3o85XK3mN2Nq4lysWULbf95OHxtpXM+c2AM5DTTxUUQmxoV 5UUQoW3SMcmmG8G.Ub44+A -----------end_max5_patcher-----------
Maybe I should have been more specific. It works if you type into the textedit from within the max for live environment. But it does not work for the end user. In other words if I type into the textedit box from within the Live track view it doesn’t save the text with the set.
Oh and in case anyone was wondering the prepend set and message objects within white boxes in the picture was just an alternative to using a print object. So you could see the result of different parts of the patch chain.
Bernt what do I do with that text you just posted, forgive me for being a noob but I dont have a clue what I’m supposed to do with that.
Cheers for getting back to me again, I’ll upload my patch for you.
It’s ok I figured out what you do with that text you posted, you simply select file menu in Max and and click on "New From Clipboard"
So I loaded your patch and the same is occurring. Try this and you will see what I mean. Load your patch into a track in live. Dont open the Max environment just use it as if you were the end user in Live. Now type something into the textedit box. You will see the live.text below change accordingly so all looks well at this point. So save the set and reload it. You will find that it still does not recall the text the end user typed in. This is the case for both the textedit and the live.text objects.
This is trickier to achieve than I thought it would be.
I guessed I cut some corners there. I’ve actually never tried to store text in live.text with a Live set until you dropped this post. I just knew that this method could be used to store values with live.numbox. And when I made the example patch I never tried to change the text inside Live as you described.
The solution is actually quite simple. You can just skip the live.text object and connect a pattr object to the text edit object. Here is a simple example patch. Let me know if this works out for you or not.
----------begin_max5_patcher---------- 509.3ocqT0ziaBCD8L7qvhyoQPyGMp2ZO2as2pVgLwS1LslwHaSZ1tJ+2qsA yRxBY2C8PHvLddyad198bZRVk5LXxXel8SVRxyoIIgP9.I8emjUyOuWxMgkk QveTU+JaQWpSbMwqgPluyOAhe.mswjV+69LMbqUydUdpsFIIXC.WzG7fhrCP 9EMxkrupjhXMNn1eDoGK0vdaGuK1rLeQ+yccuuaYN6g9JPQ.JGo+PQwnVqZs wdupOZWH6SMPGxYYK5+MflmdF7ugETj6ZVWXMXrJcrruwq.oqtsa2NTnwO8k NV33coWOvpVamzmLH094S6FdKnKAhWI65SH2kzqPZ.h6.1ItrETGhgiwG2kZ 2lanGe7Swg4l7H4ymOY1nTsZhbHgV2t2n4XJDLGUZ6rGgtAvSnAiZxTbUIdi ogSjxxsnhJG54TsRpnGeejx2y6oPRj9sGIybBfG.kXV8AoCpYooRK.8bU15z eyrkZZ.PHw5Y2WrPyrbFN2nHfB2+JVNaysO0uWk2sfKoou7W3o6L86z1w6k. BzNkwys4F7cB2C82B+O63rdm2kY8pfWSteimsIeZKmMS63r9dNNnSYeSimQZ XXMYtSZ25jGntO90BqQ0p2GaXzWjULzJgyLCov0jQKxMIrWFwinP.znCHY0n nQ4ndOGXObECSuj9OTbEbxN -----------end_max5_patcher-----------
oh my that is simple, works a treat.
I was actually experimenting with the coll object and saving to a text file and recalling on patch load but your way is much more simple and a hell of a lot less bulky.
So cheers for all the help, you’ve been great.
It works basically, but doesn’t seem to recall formatting with carriage return.
Is this normal behavior?
Seems like it is. The carriage return is output in the ASCII-outlet, but I can’t see that it’s ever given in the output text. Neither are spaces (more than one). I might have overlooked some argument or something, but I think it’s the default behavior even though you’ll might be able to change this behavior.
huge help. thanks guys!
Forums > Max For Live