i presume you are talking about moore's "elements of computer music", which has loads of c code lifted from cmusic.