tosymbol M4L bug
Im using tosymbol in a device. There is a bug, when two devices are used in a set on different tracks, where tosymbol will concatenate messages from both devices (its very strange). This only happens when the device is closed (not being edited).
Try this, put this in a device in your set, then copy the device to a different track
<code>-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 399.3ocwU9saBBCEF+ZLw2gldsiv+E2cauFKlkJTktTZIbpY5LaO6iVDhNvo AmtPROIemSoe8WOE1MdjEdgbCEvnGQufrr1UoXYzzJVMBV3bxlDNALEhEz2k KdCOYeNEcixnCBRAjIUegbaSxRMopp+AeuosxKkBEv9fpS55X6znWPTIYLwp WKoIpZW4NsJMJXlcPXr+zfInnYZA2XaGz7l4IVmyDbpxXPuCTkqUMxtGt3BR tYwwOUxHbzyRdZq4pmiZaAs1A3kbIoxMyM4+b7HcrJL4pIVQFAjkmjWgChWg F7XFCiu2nBXqDD9MgUkLgpON44DMDN44XXSTjN36eFP41OnbNGnFLFxo.PVQ 6xABneP.QG5mGwCmGyBziw6Yy8qu4Vzwnjv17ERd+Px6JZZ7qucENrll+RJU uxXNSz4q3F6qS7C1Ax0kIMuw1FFzAahTJnXBhhIEGUl2wkkwRSohitFjyRKj U2S26ke6P8hsm4+FWh8h+mrW3kXuN6h6j85bpcJ5Ec01SKTE9FvwatMI -----------end_max5_patcher-----------
Right click on the titlebar of the device and open the max window
You will see sometimes tosymbol prints "asasas saasasasasas saasas" instead of "asasas saasas"
This took me absolutely ages to debug, its a really strange error. Id be really pleased to find out if others can confirm/recreate.
This is happening on Max 5, on Max6 it works fine.
If tosymbol doesnt work in Max5, is there any way I can wrap a message in quotes?
It’s likely that you’ll run in to more problems than this if you’re creating 1000 unique symbols every second. Even if this worked I wouldn’t do it.
What problem is this code trying to solve? Perhaps we can think of another way of doing it.
Thanks for the advice. Im using this for OSC messages. Youre right, I tried solving another way now and it works much better.
I was trying to prepend a message before all OSC messages in a patch, using tosymbol, and combine. So I just switched tosymbol for zl slice, combine and zl join and it worked like a charm.
Forums > MaxMSP