Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:G
['(3DEF GFGB AGED GBdg e2 (3def gfgd', 'G2 d gfeg fedf edef ed B2'  
X:1
L:1/8
M:4/4
K:G
 (3DEF | GFGB AGED | GBdg e2 (3def | gfgd edBG | ABAG E2 (3DEF | GFGB AGED | GBdg e2 (3def | 
 gfgd edBG | (3ABA GF G2 :: d | gfeg fedf | edef ed B2 | (3def gd edBG | ABAG E2 (3DEF | 
 GFGB AGED | GBdg e2 (3def | gfgd edBG | (3ABA GF G3 :|  