Earle H. Hagen, who co-wrote the jazz classic "Harlem Nocturne" and composed memorable themes for "The Andy Griffith Show," "I Spy," "The Mod Squad" and other TV shows, died Monday. He was 88.