While filming Purple Rain, director Albert Magnoli needed one more song for a montage sequence. Prince went home, wrote, recorded, and produced "When Doves Cry" overnight. The song became one of the biggest hits of 1984 and remains one of his most iconic recordings.