counting time in ms based on messages

F_Dos's icon

how can I count time elapsed in ms based on bang zero and one?

so when 1 is received counter is start to count in ms. when 0 is received counter is pause. 1 again - continue. if other number lets say 2 is receiving - counter should start from the beginning. how can I do it? as well as seeing the numbers running all the time (when 1 is received of course)

double_UG's icon

Please provide at least 10 characters

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

Source Audio's icon

...........

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

Roman Thilenius's icon

[counter] has an inlet called "reset to certain number on next trigger input".

before you distinguish between a "stop and reset" button and a "pause" button, first implement both methods around the counter.