An acclaimed critic, journalist, and songwriter-musician tells the story of art's relation to machines, from the Baroque period to the age of AI.