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
['A2 dcdA Bcde gfed cBAG FAdf gfed', 'd2 (fg) agfe defg b2 e2 e2']  
X:1
L:1/8
M:4/4
K:D
 A2 | dcdA Bcde | gfed cBAG | FAdf gfed | c2 A2 A2 (Bc) | dAeA fAgA | agfe dcBA | dfeg faeg | 
 f2 d2 d2 :: (fg) | agfe defg | b2 e2 e2 (ed) | cAeA gfed | c2 A2 A2 (Bc) | dAeA fAgA | agfe dcBA | 
 dfeg faeg | f2 d2 d2!D.C.! :|  