<P> The show was filmed at Desilu Studios, with exteriors filmed at Forty Acres in Culver City, California . Woodsy locales were filmed north of Beverly Hills at Franklin Canyon . </P> <P> Don Knotts, who knew Griffith professionally and had seen The Danny Thomas Show episode, called Griffith during the developmental stages of the show and suggested the Sheriff character needed a deputy . Griffith agreed . Knotts auditioned for the show's creator and executive producer, Sheldon Leonard, and was offered a five - year contract playing Barney Fife . </P> <P> The show's theme music, "The Fishin' Hole", was composed by Earle Hagen and Herbert Spencer, with lyrics written by Everett Sloane, who also guest starred as Jubal Foster in the episode "The Keeper of the Flame" (1962). Whistling in the opening sequence, as well as the closing credits sequence, was performed by Earle Hagen . One of the show's tunes, "The Mayberry March", was reworked a number of times in different tempo, styles and orchestrations as background music . </P> <P> The show's sole sponsor was General Foods, with promotional consideration paid for (in the form of cars) by Ford Motor Company (mentioned in the credits). </P>

Who wrote the music for the andy griffith show
find me the text answering this question