Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['(3DEF G2 BG DGBG BGGB A^GAB cBA=G', 'c2 Bc BG'  
X:1
L:1/8
M:4/4
K:G
 (3DEF |:"G" G2 BG DGBG |"D" ABcA"G" BGGB |"Am" A^GAB cBA=G |"C" EAAG"D" FDEF |"G" G2 BG DGBd | 
"Am" cBAB cdef |"Em" gedB"C" c2 Bc |"D" dBcA"G" BG G2 ::"G" g2 bg dgbg | gbag"Bm" fdde | 
"F" =f2 af cfaf | =fagf"D" ede^f |"G" g2 bg dgbg | gbag"D" fdef |"Em" gedB"C" c2 Bc | 
"D" dBcA"G" BG G2 :|  