detect seperately when live is closed, or opened

newtfish's icon

Hi,

I have a patch where Im saving a preset, so id like to detect when live is opened, so I can read the preset, and when it is close, so I can write the preset. It seems that there is only loadbang, or live.thisdevice, which seems to only send a bang when live is closed and opened, so there is no way to detect them differently.

Would be grateful to find out if there is any workaround to this.

Cheers

N

newtfish's icon

im also wondering if someone could explaing the difference between loadbang, loadmess and live.thisdevice this might help me to understand how to save these presets properly.

I would ideally like to keep writing to my presets on every change, and then when the liveset is close, write the preset, then read it when the liveset is opened

broc's icon

You could trigger writing the preset with [closebang] and reading with [loadbang].

Explanation of all objects can be found on the help/reference pages.

newtfish's icon

yes, read the reference pages and used both of those, but it doesnt work when read/writing fxp files in m4l.