Music from another app or speaker works too. The grid comes from your taps, not the audio.
A tap within the margin of a grid line counts as on beat; within half the margin it is locked. Off-grid taps don't move the grid. Press R when the song changes tempo.