A musical about a controversial event in recent British history was written with creative decisions made by computer programs.