It's not math, per se. But music is certainly about patterns. And some of the ratios in musical patterns certainly have a foundation in math. I think you cannot arrive at beautiful music starting from math. But you probably can arrive at some interesting mathematical patterns starting from music.