Develop a musical composition using both the specified melodic theme and the alphabetical pattern naming.
X:1
L:1/8
M:2/2
K:D
['(ag) Tf2 (ed) d3 e fg a2', 'd3 e', 'g2 fg afge d3 f gebd Tc2', 'g2 (ag) fgfe d2 (af) def^g a2']  
X:1
L:1/8
M:2/2
K:D
 (ag) | Tf2 (ed) d3 e | fg a2 Tc2 (BA) | d2 B2 BdBA | B4 g2 :: ag | Tf2 (ed) d3 e | dcde d3 e | 
 c2 e2 e2 (f^g) | (a^g)(fe) a2 (ed) | c2 a2 A3 c | B2 g2 G3 B | ABcd edcB | A4 g2 :: fg | 
 afge d3 f | gebd Tc2 (BA) | b2 B2 BdBA | B4 g2 :: (ag) | fgfe d2 (af) | def^g a2 (ba) | 
 ^gagf ef^ga | b^gfe b2 (ed) | .c(a^ga) A2 (cA) | .B(=gfg) G2 (BG) | .A(a^ga) edcB | A4 g2 :|  