reset timer and save

josha's icon

Hi,

couple of quick questions about attached patch:

1)how can i add a reset to zero in attached post?
2) Is it possible to save the number the timer has reached when i close the patch?

2669.timerpatch.maxpat
Max Patch
Nikolas K's icon

Hello Josha,
1) the [counter] resets with a bang at the 4th inlet and the [clocker] when banged, also restarts to zero.
2) if you want the value to be stored the moment the patch is closed, you should check the [closebang] object.

Also, the way you use the [clocker] in the attached patcher, maybe the [metro] object would be more suitable!
Nikoas

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.