We're already at a point where the producers (who compose the songs and usually even create the audio using computer software) spend a lot of time analyzing the metrics they get from Spotify et al. They look for stats on how many seconds someone listens to a track before skipping to the next one, do they turn the volume up or down, which songs are paired to the same playlists, etc etc.
When reading interviews of musicians, they frequently bring this up and usually not in a positive light. You can also hear the results if you're exposed to modern pop music - when there's a hit single, there will be quite a few copycats that will shamelessly borrow the elements of the hit. This is not a new thing but the degree to which it's occuring is.
Now what's good at looking at metrics, doing tiny adjustments and gradient descending towards some local optimum and cheaper than hiring a musician? A machine learning algorithm of course.
While it's not common yet, there have been some fairly impressive demonstrations I've heard. Computer-generated music notation is easy to generate (read: number of bits in the output is rather low) and has been experimented with for a long time.
But this can go even a step further, rather than producing sheet music, an algorithm can generate the audio directly. As in the PCM audio waveforms (or maybe spectrograms, frequency domain might be easier for algorithms). I recall hearing AI-generated classical music audio (found through HN) which sounded fairly convincing to me (albeit with a white-ish noise on the background).
If you're a professional pop music producer, make the most out of your career while you can. You're closer to being replaced by robots than you think.
I'm not suggesting that human musicians will go away any time soon, I'm sure people will enjoy playing instruments with their own hands in the future. But the kind of producers that create music with a computer mimicking popular songs and tracking analytics from listeners will be, if not replaced, at least heavily assisted by algorithms more and more in the near future.