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:A
['d2 fd']  
X:1
L:1/8
M:4/4
K:A
 f |"A" e2 cA"D" d2 df |"A" e2 cA"E" dBBa |"A" e2 cA"D" d2 fd |"E7" edcB"A" cA A :| | g | 
"A" a2 ec"D" d2 fd |"A" a2 ec"Bm" fBBg |"A" a2 ec"D" d2 fd |"E7" edcB"A" cAAg |"A" a2 ec"D" d2 fd | 
"A" a2 ec"B" fBBg |"A" afec"D" defa |"E7" edcB"A" cA A ||  