I am trying to reset the state on some external MIDI hardware I am controlling via a Max for Live patch.
I have the "reset" process working properly when triggered from a button in my patch. And if I hook it up to a [closebang] or [freebang], then it works when I delete the device. But it does not work when I simply close the Live Set or Live itself, which is what I was mostly concerned with...
I am guessing there is a timing issue here, where Live's MIDI out to external hardware deactivates just before my "reset" process is triggered, and all MIDI out messages from my patch are ignored.
Has anyone run into an issue like this? Is there another strategy I can use to talk to my external hardware from a patch at the time when the Live Set is closing?