Create tunes following the given musical pattern and incorporating the provided motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:A
['A2 EA', 'e^def ecAc efec dBBc', 'd2 Ad', 'a^gab afdf abaf geef'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:A
 A2 EA CAEA | A2 cA GdBG | A2 EA CABc | dfed cABc | A2 EA CAEA | A2 cA GdBG | A2 EA CABc | 
 dfed cAA || c | e^def ecAc | efec dBBc | eAcA eAcA | efed cAAc | e^def ecAc | efec dBBc | 
 d2 ec dcBA | GBed cABG | A8 |][K:D]"^setting in D" z | d2 Ad FdAd | d2 fd cgec | d2 Ad Fdef | 
 gbag fdef | d2 Ad FdAd | d2 fd cgec | d2 Ad Fdef | gbag fdd || f | a^gab afdf | abaf geef | 
 adfd adfd | abag fddf | a^gab afdf | abaf geef | g2 af gfed | ceag fdec | d8 |]  