Odd idea: Music based workout creator?

We all seek trainer motivation and keeping it fresh is a challenge. What if there was a way to create a workout based upon the dynamic range of an album that corresponded to a desired type of workout and TSS/IF goal (base, SST, V02, Sprint)? Would it be too hard to program an algo which looked at the duration of an album, the desired TSS, the desired training zone, and your FTP and built a workout that fit your goals but went with the music? Your own personal spin class.