Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/8
M:4/4
K:D
['a3 g egde cABG E3 D EGBd', 'fg f2-']  
X:1
L:1/8
M:4/4
K:D
|: a3 g egde | cABG E3 D | EGBd edcA | gAfe dcAG | abag e2 ed | cABG EGBG | AB=cd eBdB | 
 AgdB AB=ce :: d2 dg fg f2- | fgfe d2 BG | dBdg fg f2- | fgab agfe | dBdg fg f2- | fgfe d2 BG | 
 AB=cd eBdB | AgdB AB=ce :|  