You should seriously consider looking up music theory, but if that's too boring for you just do what I did and transcribe a lot of stuff. The latter will increase your knowledge over time because you'll get a feel for how all of the good music is made.