Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
['A d2 f afd', 'A B=cB d2 B B2 A ABA']  
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
 A | d2 f afd | cde e2 A | d2 f afd |{cd} e3 A2 A | d2 f afd | e2 f gfg | (f/g/a)f ede | d3 D2 :: 
 A | B=cB d2 B | B2 A ABA | A2 G G2 F | F3 E2 A | B=cB d2 B | B2 A ABA | A2 G F2 E | D3- D2 :|  