When you edit the song to the length you want, it should automatically loop in the game. I've found that the hard part is actually making it sound good on a loop. It basically just plays it from the very end and goes right back to the beginning, without any kind of pause in between, so your music might have an unusual break in the rhythm at that part.