It's difficult to say. In some ways, I've taught myself a lot. In other ways, I get a lot of it from school (I'm a composition undergrad). I'm an analytical guy by nature, and I was put into an environment that supported the intellectualism I like in my music during a time when I was particularly receptive to it. I started playing the guitar when I was sixteen, and I didn't really learn it correctly. I hardly know any songs, because the songs I was into were far above me when I was learning, and the songs everybody else learned, I was simply not interested in. I think that because of that, music existed for me more in concept than in actual practice, so when I was told about rhythmic cycles in Indian music and crazy-ass bitonality in Stravinsky, it clicked. Nobody taught me to analyze Rush and whatnot; that's something I've had to build the courage to do.
It's so much more than that, though. Music is my life, and it would be hard for me not to try to figure out how it all works.
As luck would have it, I am in my second attempt of writing a book. I'm giving online lessons, as well, which is helping me draft the concepts for the book. It's a lot of work, and I've been really busy lately, but I really hope to turn it out - I think it would offer a valid perspective on composition and analysis in the non-classical, non-jazz musics.