Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
Q:1/8=150
M:3/4
K:D
['A2 d2 d2 B2 e2 e2 dcBA', 'd4 (fg) abag f2 b2 ba gf']  
X:1
L:1/8
Q:1/8=150
M:3/4
K:D
 (FG) | A2 d2 d2 | B2 e2 e2 | dcBA Bc | defg a2 | A2 d2 d2 | B2 e2 e2 | dcBA Bc | d4 :: (fg) | 
 abag f2 | b2 ba gf | gagf e2 | a2 ag fe | fgfe d2 | g2 gf ed | cdeA Bc | d4 :|  