finished turning a music file into a working function