Spotify has patented a ‘method, system, and computer-readable medium for creating song mashups’ Source

Spotify holds a patent for tech that can generate song mashups