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
['', 'fdcA G3', 'G2 dG', 'fdcA G3'  
X:1
L:1/8
M:4/4
K:G
 dc |: BGGG DGGG | (3Bcd fa gdBG | A=FFF CFA,F | (3ABc eg fdcA | BGGF FGDG | BG=FD GABc | 
 dggf g2 ag |1 fdcA G3 A :|2 fdcA G3 B |: dggg gfga | gfgd BGGG | A3 g agfa | g2 eg fdcA | 
 dggg afga | gfgd Bgdc | A=feg ^fa g2 |1 fdcA G3 B :|2 fdcA GBdc |: G2 dG Bcdc | A=FFF cFAF | 
 G2 dG Bcdg | fgag fdcA | G2 GG Bcdc | A=FFF cFAF | G2 DG Bcdg |1 fdcA G3 F :|2 fdcA G3 g ||  