Need a jumping off point for my Audio Plugin Project

I’ve used juce before but it’s been quite a while. It seems everytime I come back its a new version of c++ being used or now everythings deprecated… That being said I’ve been wanting to make a plugin that is a sequenced gate. Kind of like KiloHearts Trance Gate but with some more features.
The core logic in this would be figuring out when a step has changed. e.g. when we have entered a new eighth/sixteenth note.
What would be an idiomatic, secure, efficient way of figuring out when this step change has occured in the host? I have looked around for solutions, namely getPlayHead() in the processBlock but I never felt like I could get it to work how I wanted.

Does anyone have any ideas?