If you are interested in doing musical programming looking into c-sound... It is designed to work with music and you can program things in terms of scales and notes instead of frequencies.