Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
Q:1/8=140
M:6/8
K:G
['D GAG BAB GBd e2 d gfe', 'G2 d def gfe age edB def'  
X:1
L:1/8
Q:1/8=140
M:6/8
K:G
"^gaily" D | GAG BAB | GBd e2 d | gfe edB | BAA A2 D | GAG BAB | GBd e2 d | gfe edB | cEF G2 || d | 
 def gfe | age edB | def gdB | BAA A2 d | GAG BAB | GBd e2 d | gfe edB | cEF G3 |]  