Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:6/8
K:G
['ABA ABd', 'ded dBG']  
X:1
L:1/8
M:6/8
K:G
 (3D/E/F/ | GAG GAB | ABA ABd | edd gdB | ABA ABd | GAG GAB | ABA ABd | edd gdB | cAF G2 :| 
 (3A/B/c/ | d2 d dBG | efe efg | ded dBG | ABc BAG | ded dBG | e2{fe} d efg | dBd gdB | cAF G2 :|  