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/8=150
M:4/4
K:D
['D2 DE FDFA dF F2', 'gf edef gfed cdef g2 fe defg']  
X:1
L:1/8
Q:1/8=150
M:4/4
K:D
 D2 DE FDFA | dF F2 BFAF | E2 EF GFGA | (3Bcd AF EGFE | D2 DE FDFA | dF F2 ABde | (3fgf ec dBAG |1 
 FGEF D2 FE :|2 FGEF D3 A |: defg afdf | afdf a2 gf | edef gfed | cdef g2 fe | defg afdf | 
 afdf abag | (3fgf ec dBAG |1 FGEF D3 A :|2 FGEF D2 FE ||  