Hi,
I am curious if there would be a way to send messages to objects when a patch is being closed down. Similar to closebang but works when Pd is being shutdown as well.
I have an Arduino controlling Leds with PWM. The PWM frequency is set by my patch. Is there a way that when the patch is being closed somehow to automatically send a "0" message to the object setting the PWM.
I want to do this so that when the patch is closed the Leds all shut off. Otherwise they will stay on and there will be no way of shutting them off without opening the patch again, setting them to off and closing the patch.
Your help is appreciated, thank you
Daniel