The use of music in theater goes back to ancient Greece, and its popularity has grown to the modern-day productions of ‘Hamilton.’