Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
Q:3/8=110
M:6/8
K:G
['G2 G AGA', 'G2 f gfg efg fee def gfg']  
X:1
L:1/8
Q:3/8=110
M:6/8
K:G
 D | G2 G AGA | Bcd efg | G2 G AGA | BGE E2 D | G2 G AGA | Bcd efg | dcB AGA | BGG G2 :: f | 
 gfg efg | fee def | gfg aga | gfe e2 f | geg aga | gee efg | dcB cBA | BGG G2 :|  