Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:4/4
K:G
['(3def (3gba (3gfe dcBA cBAG AGEG DGBd', 'G2 B,C DGBA GFED EGcB AGFE DGBd', 'G2 (3def gfgb afdf eceg dBGB cgec'  
X:1
L:1/8
M:4/4
K:G
 (3def | (3gba (3gfe dcBA | cBAG AGEG | DGBd cBAG | B2 A2 A2 (3def | (3gba (3gfe dcBA | cBAG AGEG | 
 DGBd edcA | G2 G2 G2 :: B,C | DGBA GFED | EGcB AGFE | DGBd cBAG | F>Gd>d d2 (3def | 
 (3gba (3gfe dcBA | cBAG AGEG | DGBd edcA | G2 G2 G2 :: (3def | gfgb afdf | eceg dBGB | cgec BgdB | 
 AGAB A2 BA | GdBG FGAB | cBcd ecAF | GdBG FAdf | g2 g2 g2 :|  