Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:9/8
K:D
['d3 dAG FED d3 dAF GAB ABc', 'g fdf']  
X:1
L:1/8
M:9/8
K:D
 d3 dAG FED | d3 dAF GAB | ABc dAG FGA | =c3 E2 F GFE :| D2 g fdf ecA | d2 g fdf gfe | 
 d2 g fdf eAB | =c3 E2 F GFE | D2 g fdf ecA | d2 g fdf efg | afa gec dAB | =c3 E2 F GFE ||  