Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=180
M:2/2
K:D
['dF F2', 'd3 c', 'AFEA dcdf e2 ae fdBc dfec']  
X:1
L:1/8
Q:1/8=180
M:2/2
K:D
 dF F2 dfec | dF F2 AFEF | dF F2 dfed |1 cABG AFEA :|2 cABc ABcd ||"^5" e2 (3cBA EAcf | 
 e2 dA BF F2 | e2 (3cBA EAcA | (3Bcd cA BF F2 |"^9" e2 (3cBA ecfc | eAcA BF F2 | d3 c dfed | 
 cABG AFEA ||"^13" d3 c dAFA | dcdB AFEA | d2 dc dfed | cABc AFEA |"^17" d3 c dAFA | dcdB AFEA | 
 dcdf e2 ae | fdBc dfec |"^final" d8 |]  