Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/4
M:2/2
K:D
['d A d d a f3/2 e/', 'B A']  
X:1
L:1/4
M:2/2
K:D
 d |:"D" A d d a |"D" f3/2 e/ f/e/ d |"D" A d d a |"D" f3/2 e/ f/e/ d |"G" g2 a b | 
"D" a3/2 g/ f g |"A7" a a e f/e/ |"D" d A"A7" B A ::"D" f3/2 e/ f A |"G" B A d3/2 B/ | 
"D" A A"Bm" B A |"Em" f e"A7" e A |"D" f3/2 e/ f A |"G" B A d3/2 e/ |"D" f/ a3/2"A7" e f/e/ |1 
"D" d A"A7" B A :|2"D" d2- d |]  