# `Mx.Music.Loop`
[🔗](https://github.com/mx-music/mx/blob/main/lib/mx/music.ex#L79)

Music that runs a function for each pass of some beats and plays the music it returns, a number of times or as long as the music beside it; or, with `on:`, a pass for each input it waits for.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
