Formulate a musical piece by utilizing the specified motif and alphabet-based structure.
X:1
L:1/8
M:6/8
K:G
['BAB cAG FGA', 'def gag fed']  
X:1
L:1/8
M:6/8
K:G
 DGG BAB | cAG FGA | DGG BAB | cAF G2 GDGG BAB | cAG FGA | fed f2 d | cAF G3 :: def gag | 
 fed g2 B | def gag | fed cAF | def gag | fed g2 d | fed f2 d | cAF G3 :|  