One of the things Wladyslaw Szpilman did to survive while hiding out in Warsaw during World War II was to mentally go over, note by note and bar by bar, every piano composition he had ever learned.
The story of the Jewish concert pianist's singular experience during the occupation of Poland is told in The Pianist, Roman Polanski's award-winning film about survival against impossible odds.
Full Story