Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
Q:3/8=110
M:6/8
K:D
['e f2 d', 'B2 d A2 d G2 d F2']  
X:1
L:1/8
Q:3/8=110
M:6/8
K:D
 d2 e f2 d | g2 e f2 d | fga Bcd | efd cBA | d2 e f2 d | g2 e f2 d | fga Bcd | edc d2 :: 
 B2 d A2 d | G2 d F2 d | E2 e efg | fed cBA | B2 d A2 d | G2 d F2 d | E2 e efg | edc d2"^End" :|  