You'd just have to copy the timecode and put it in a list. Depends on how you want to implement it and what kind of rhythm game it is but. You'd just have to create the wanted event when the current time reaches the Xth index of list then increment the counter.
Basically something like that:
If Current_Time>BeatList[Counter]:
DoWantedEvent()
Counter=Counter + 1