Music goes in. MIDI comes out. MIDI clock ticks to the tempo as it should but in addition, three-level rhythmic structure of the song is signaled by a MIDI note sent on each bar, beat, and temporal atom event.
How you use the MIDI is up to you. The robot doesn’t care.