Develop a musical composition by integrating the alphabetically represented musical pattern and the supplied melodic theme.
X:1
L:1/16
Q:3/8=50
M:3/8
K:D
['d2d2 fa', 'd2d2 fa']  
X:1
L:1/16
Q:3/8=50
M:3/8
K:D
 A2 | d2d2 fa | d2d2 fa | agfg e2 | gfef d2 | d2d2 fa | d2d2 fa | agfg e2 | d4 :: fg | a2a2f2 | 
 d'4 b2 | a2f2f2 | g2e2e2 | a2a2f2 | d'4 b2 | a2f2f2 | e4 A2 | d2d2 fa | d2d2 fa | agfg e2 | 
 gfef d2 | d2d2 fa | d2d2 fa | agfg e2 | d4 :|  