Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/8
M:2/4
K:D
['d2 ec d3 A B2 c2 d4', 'd2 c2']  
X:1
L:1/8
M:2/4
K:D
 d2 ec | d3 A | B2 c2 | d4 | f2 ed | (dc) (BA) | (cB) (A^G) | A4 || A2 GF | B2 A2 | Bc de | d2 c2 | 
 dA A G | F>G A2 | BA GF | F2 E2 | AB c d | A2 d2 | d2 c2 | d4 |]  