Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:4/4
K:G
['B3 A', 'AGEG DGGF', 'd2 Bd']  
X:1
L:1/8
M:4/4
K:G
 B3 A BAGA | B2 GB AGEG | B3 A BAGB | AcBG AGEG | B3 A BAGA | B2 GB AGEG | Beed BddB | 
 (3ABc BG AGEG || DGGF G2 BG | DGBG AGEG | DGGF GABc | dBAc BAGE | D G3 DGBG | DGBG AGEG | 
 DGGF G2 Bc | dBAc BAGB || d2 Bd efge | d2 BG AGEG | d2 Bd efgb | a3 b ageg | d2 Bd efge | 
 d2 BG AGEG | d2 Bd efge | a3 b aged ||  