A song’s length is so important to the user that it should be a separate tool option in your interface. Also, give the user the ability to decide the length of the song they need. Between 10 seconds to 5 minutes, for example.