Yeah, it happened in 1975 -
Ken Russell originally wanted Christopher Lee to play the Doctor. But he was in Bangkok, filming "The Man With The Golden Gun". Luckily, Jack Nicholson was in London at the time, and he was brought in as a last minute replacement for Lee. His singing and his film part were filmed and recorded in 18 hours.
Can you guess which film it was ?