Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:4/4
K:D
['d>A^G>A B2', 'B2 c>Bc>B A>ce>c']  
X:1
L:1/8
M:4/4
K:D
|: a2 a2 f2 f>e | d>A^G>A B2 A>f | g2 g>f e>fe>d | c>A^G>A B2 A2 | a2 a>g f>gf>e | d>A^G>A B2 A2 | 
 c>Ac>e b>a (3gfe |1 d2 f2 d>ef>g :|2 d2 f2 d2- d>e |: f>e (3fga d2 d2 | e>d (3efg B2 B2 | 
 c>Bc>B A>ce>c | d>cd<f b2 a>g | f>e (3fga d2 d2 | e>d (3efg B2 B2 | c>Bc>B A>ce>c |1 
 d2 f2 d2- d>e :|2 d2 f2 d>ef>g ||  