Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/16
M:3/8
K:G
['BdBdg2 BdBdg2', 'A4 c2 B4 d2']  
X:1
L:1/16
M:3/8
K:G
 d2 | BdBdg2 | BdBdg2 | AcAcfd | gdBdg2 | BdBdg2 | BdBdg2 | fedcBA |"^ende" G4 :: z2 | A4 c2 | 
 B4 d2 | c2c2c2 | e2d2d2 | A4 c2 | B4 d2 | defgaf |"^D. c." g4 :|  