As part of my practice session today, I was exploring using CAGED chord shapes up and down the neck while incorporating licks in order to make melodic passages. While playing in A major, I improvised the following resolution that uses double stops borrowing from its diatonic chords:
F# G# F# E F# E F# E D A
E|----------------------------x
B|--7/9--7--5/7\5----7--5--3--2
G|--6/8--6--4/6\4----6--4--2--2
D|----------------------------2
A|----------------------------0
E|-----------------------------
I borrowed chord tones from G# F#, E, D, and of course A, so it is a 7-6-5-4-1 falling resolution to the root.
I liked the way it sounded, so I played that part a couple times and realized one of these notes (the D# at the 8th fret on the G string) is not actually in A major. However, I am borrowing it from a G# major chord (as it is the 5th), which is in fact in A major.
I tried to find a similar melody that is purely A major, but this was the closest I got, basically just moving that G# half a step up to turn it into an A (it doesn't sound good to me):
F# A F# E F# E F# E D A
E|-----------------------------x
B|--7/10--7--5/7\5----7--5--3--2
G|--6/9---6--4/6\4----6--4--2--2
D|-----------------------------2
A|-----------------------------0
E|------------------------------
So ultimately, my question is:
Is it okay to "borrow" that D# despite it not being in A major since it is a chord tone of G# which is in A major? Is this faulty logic? Why does it sound good? Am I just playing in lydian at this point with the sharp 4th? I don't think I am since I am also using a perfect 4th - B string 3rd fret - when playing the D chord right before the resolution.
Note: Please forgive me if I am interchanging or using incorrect terms or phrases. I am still pretty new to this whole music theory thing. Thanks!