Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:3/4
K:D
['dB A3']  
X:1
L:1/8
M:3/4
K:D
|: dB | A3 B/d/ e3 d/e/ | f2 e2 d2 B<d | g2 gf/e/ fa ab/a/ | f2 ed (e2 e)d/e/ | f2 a4 ba | 
 a2 fe dB/A/ B<d | f5 ed | e5 dB | A3 B d2 d2 :|  