Craft a musical piece that integrates the provided melodic theme and the corresponding alphabetical pattern.
X:1
L:1/8
M:6/8
K:G
['BdB BAB GBd', 'dBA G3 AGA BeB def g3 fgf']  
X:1
L:1/8
M:6/8
K:G
 BdB BAB | GBd gdB | ABA AGA | BeB dBA | BdB BAB | GBd g3 | efg eag |1 fd^c d2 =c :|2 fd^c def |: 
 g3 fgf | ege dBA | G3 AGA | BeB def | g3 fgf | ege d3 | efg eag |1 fd^c def :|  