Charlie and the Chocolate Factory (film) shades of chocolate were tested before Burton settled on the proper hue. The original music score was written by Danny Elfman, a frequent collaborator with director Tim Burton. Elfman's score is based around three primary themes: a gentle family theme for the Buckets, generally set in upper woodwinds; a mystical, string-driven waltz for Willy Wonka; and a hyper-upbeat factory theme for full orchestra, Elfman's homemade synthesizer samples and the diminutive chanting voices of the Oompa-Loompas. Elfman also wrote and performed the vocals for four songs, with pitch changes and modulations to represent different singers. The lyrics to the Oompa-Loompa songs
Willy Wonka & the Chocolate Factory to buy the rights to the book and finance the picture for the purpose of promoting a new Quaker Oats "Wonka Bar". David L. Wolper and Roald Dahl agreed that the film would be a children's musical, and that Dahl himself would write the screenplay. However, Wolper changed the title to "Willy Wonka and the Chocolate Factory". Screenwriter David Seltzer conceived a gimmick exclusively for the film that had Wonka quoting numerous literary sources, such as Arthur O'Shaughnessy's "Ode", Oscar Wilde's "The Importance of Being Earnest", Samuel Taylor Coleridge's "The Rime of the Ancient Mariner" and William Shakespeare's "The Merchant