Craft a musical piece that integrates the provided melodic theme and the corresponding alphabetical pattern.
X:1
L:1/8
M:4/4
K:G
['gDGB fGeG dDGB dDGB cDFA', 'G2 (3Bc^c dgfg bgdB ceag fdef gdBd']  
X:1
L:1/8
M:4/4
K:G
 (3def | gDGB fGeG | dDGB dDGB | cDFA dFAd | fed^c edef | gDGB fGeG | dDGB dDGB | cDFA f3 e | 
 d^c=cF G2 :: (3Bc^c | dgfg bgdB | ceag fdef | gdBd ecAG | FAd^c d^def | gGBd fGeG | dDGB dDGB | 
 cDFA f3 e | d^c=cF G2 :|  