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:4/4
K:D
['AG F2 AF E2 AG FGEF D2', 'fgfg efef']  
X:1
L:1/8
Q:1/4=140
M:4/4
K:D
|: AG | F2 AF E2 AG | FGEF D2 A2 | B2 c2 d2 fe | cdBc A2 AG | F2 AF E2 AG | FGEF D2 A2 | 
 Bcde fedc | d6 :: e2 | fgfg efef | fgfg efef | dede cdcd | dede cdcd | BcBc ABAB | BcBc ABAB | 
 Bcde fedc | d6 :|  