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/2=100
M:2/2
K:G
['D2 DF G3 A', 'G4 d2 gfga (g/a/b) ag fefg (f/g/a)']  
X:1
L:1/8
Q:1/2=100
M:2/2
K:G
 (B/c/d) | D2 DF G3 A | BGdG cBAG | F3 E DEFG | AFdF E2 (G/F/E) | D2 DF G3 A | BGBd efge | 
 dBAG{B} A2 GA | B2 G4 :: d2 | gfga (g/a/b) ag | fefg (f/g/a) gf | e^def gfed | B2 e>f e2 g2 | 
 dBAG (B/c/d) cB | e^def (a/g/f) ge | dBAG{B} A2 GA | B2 G2- G2 :|  