Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/4
M:2/2
K:D
['e f', 'e f']  
X:1
L:1/4
M:2/2
K:D
 f f f2 | e f d c/d/ | e e e f | e2 d2 :: B c d2 | e f d c/d/ | e e e f | e2 d2 :|  