Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:4/4
K:D
['E3 F DEFA d2 fd gdfd edBd', 'fd d2']  
X:1
L:1/8
M:4/4
K:D
 E3 F DEFA | d2 fd gdfd | edBd A2 FA | (3Bcd AF GFED | E3 F DEFA | d2 fd gdfd | edBd A2 FA |1 
 (3Bcd AG FDDF :|2 (3Bcd AG FDDe |: fd d2 fdge | fd d2 ec A2 | fd d2 gfed | cdeg fd d2 | 
 dfaf gfec | dcAG A2 FG | A3 B ABde |1 f2 eg fdde :|2 f2 eg fdAF ||  