I'm finally getting serious about learning some theory but I'm having a little bit of a tough time with some things. I've learned a lot of scales and I've been able to apply them, for example I learned the double harmonic scale and I just improvised using those notes and I came up with some cool 'arabian' sounding lick. I don't know my chords too well, just major and minor basically (plus a couple others which I can't remember the names of right now) and I was wondering are chords just kind of guidelines as to which notes in a particular scale will usually sound good? So if a major chord is R, 3, 5 then in what situation would I only use these notes, and when might I go outside the box and use other notes in a scale that has the R, 3, and 5 in it like ionian or lydian? Would I use chords when the guitar is doing a lot of chord changes and maybe scales when the guitar is playing one chord for longer? I'm sure this makes no sense but if anyone can shed some light on this subject for me I'd appreciate it.