Follow Song

Heya

I’m building my hardware controller (Step Brother 16), and I’ve got a little question.

I want it to follow the song on playback, so that when you start the song each of my leds blink for the step being played.

What is the best way to do this,

Is it by letting my controller read the the midi clock signals (parallel to my scripting tool), or can I be notified in the script as the song advances a step? If so, how?

I found the renoise.song().transport.playing observable. But then what? Make a timer in my code that matches the BPM? Naahh…

Later
Fredrik