how to write a song to a beat