Simple visual metronome

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

Hi I think I'm going about something the wrong way here. I am trying to build a visual metronome. For bangs should light up on every 1st, 2nd 3rd 4th beat. Seems to work fine until I start and stop the transport. It seems to go out of sync. So the 1st best might light on the 2nd for example

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

this:

________________________________
*Never fear, Noob4Life was never here!*

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

Thanks that set me on the right path. I discovered the 'transport' object. I think think this is the missing link to keeping in sync after start/stops. Heres what I got now:

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

almost, but with 'transport' you don't need the counter because transport is doing the counting for you, definitely look at what's actually being output for every different object, it'll help you remember their specific application:

and if you haven't already, go and look at this timing tutorial but, not just online, also within the 'Help' menu of the Max app(so that you can open the actual tutorial patch):
https://cycling74.com/docs/max5/tutorials/max-tut/basicchapter19.html
(found from master tutorial and doc page:
https://cycling74.com/docs/max5/vignettes/intro/docintro.html )

glad you found the transport object. good call! hope the rest helps move you along even further. best of luck!
________________________________
*Never fear, Noob4Life was never here!*

orange_glass's icon

Thanks for your help Noob4life