Artificial intelligence has been used to extract John Lennon’s voice from an old demo to create “the last Beatles record,” Paul McCartney said.