Best way to simulate a step sequencer that can be controlled from the game?

(topic deleted by author)