get and read this
http://www.amazon.co.uk/Theory-Computer ... 1598635034
seriously. It covers everything. Once you've finished that book, get the next one in the series, than after that the last one.
Go through each book in a methodical manner, forget about 'making music' for the time being and actually 'teach yourself music theory" by following the lessons in these books in each chapter, studying each chapter, taking notes, testing yourself, making little practice sessions in your daw, refining techniques, getting better and more learned in the whole thing.
That is by far the best advice i could give you. Those books are course material for degree level computer music production education. They're made in such a way that you can teach yourself, from the books, at your own pace, provided you use them how they are intended. You might know some of what they are on about, but don't skip past the bits you do, go through them like a curriculum and don't move on until you are very comfortable with the information in each chapter.
serious ting. I'm doing just that at the moment (having read them through once already) and i have to say its the best thing i ever did in regard to learning music theory.