Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:9/8
K:D
['d2 B', 'fed faf']  
X:1
L:1/8
M:9/8
K:D
 c | d2 B AFA AFA | d2 B AGF E2 c | d2 B AFA AFA | d2 B AFD D2 :: g | fed faf g2 e | fed faf e2 g | 
 fed faf g2 e | d2 B AFD D2 :|  