Lots of people currently tour the world performing music that is partly algorithmic, where aspects of the performance are determined by (usually simple) AI algorithms. This is normal. The crowd doesn't know, and those that do know think it's cool.
When we get to the point where AI can make good music on its own without direction, we will have a lot bigger questions to worry about than the fate of musicians. It won't be a pressing issue.