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/4=140
M:2/4
K:D
['A d>A d>f e>d c>B A>f e>g', 'G F>F E>D (D']  
X:1
L:1/8
Q:1/4=140
M:2/4
K:D
 A | d>A d>f | e>d c>B | A>f e>g | f3 g | a3 d | c3 a | B>g A>G | F>d E>c | d3 :: d | f>e d>c | 
 (B g2) f | e>d c>B | (A a2) g | f>e d>c | B>A ^G>A | B>c B>A | A3 G | F>F E>D | (D A2) G | 
 F>F E>D | (D B2) A | G>F E>D | C>A B/A/B/c/ | c>F E>D | D3 :|  