What is the term for the study of music?

Music Theory. When you are studying music in musical aspects (vice historical or technological aspects), you are studying music theory.