Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/4
K:G
['(3d/e/f/ gB BA/G/ FA AB/A/ Gg g/f/g/a/', 'dB de/f/ gf ed'  
X:1
L:1/8
M:2/4
K:G
|: (3d/e/f/ | gB BA/G/ | FA AB/A/ | Gg g/f/g/a/ | bg g (3d/e/f/ | gB BA/G/ | FA AB/A/ | 
 Gg g/f/g/a/ | bg g :: B/c/ | dB de/f/ | gf ed | dB de/f/ | gf ed | e/e/e/e/ ed | gB BA | 
 G/G/G/F/ GA | BG ED | G/G/G/F/ GB | A/A/A/A/ AB | Gg fe | dcBA | G/G/G/G/ GB | A/A/A/A/ AB | 
 Gg fa | g3 :|  