Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:2/2
K:G
['(dc) BGBd BGBd gfge dBGB ecdB cABG', 'd(g{a} (3gfg)']  
X:1
L:1/8
M:2/2
K:G
 (dc) | BGBd BGBd | gfge dBGB | ecdB cABG | EAAB A2 (dc) | BGBd BGBd | gfge dBGB | ecdB cABG | 
 D2 G2 G2 :: z2 | d(g{a} (3gfg) d(g{a} (3gfg) | dgba gfed | e(a{b} (3aga) e(a{b} (3aga) | 
 eaaf gfef | d(g{a} (3gfg) d(g{a} (3gfg) | dgba gfef | dfaf gfef | g2 gf g2 :|  