undo/redo Live API

denleschae's icon

Perhaps further enlightenment is what I need, but I'm having a hard time getting the undo and sometimes the redo commands to work in Max for Live. My understanding is that these should work just like undo and redo in the edit menu. I'm working on including these commands in a larger patch so that I can map undo and redo to a foot pedal when clips are deleted and so on, but even this stripped down version of this isn't working as expected. I can get redo to work most of the time, but undo almost never works. Does anyone have any suggestions or insight?

Max Patch
Copy patch and select New From Clipboard in Max.

I'm using the 32bit versions of Live 9.1.2 and Max 6.1.7.

benniy's icon

i'm not sure if this helps at all, but the problem may lay within a different part of your patch cluttering up your undo-history (in case the above isn't all you have for now). julien bayles most recent book covers this on page 39. i haven't gotten into it deeper, but (very vague): he talk about using the live.remote object rather than the live.object for continous control changes.