Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['d2 d', 'A2 c'  
X:1
L:1/8
M:6/8
K:G
 D |"G" DGB d2 d | dcB"D7" A2 c |"G" BGd"Am" cAe |"C" G3"D7" F2 D | |"G" DGB d2 d | dcB"D7" A2 c | 
"G" dBG"D7" cAF | A3"G" G2 |] d |"D7" def"G" gdg |"C" gfe"G" d2 d |"C" ecB"Am" Ace | 
"Em" G3"D7" F2 G | |"D7" ABc def |"G" B3 g2 g |"D" fed"A7" ^cde |"D" d3"D7" def |] |"G" gdB GBd | 
 dcB"D7" A2 c |"G" BGd"Am" cAe |"C" G3"D7" F2 D | |"G" DGB d2 d | dcB"D7" A2 c |"G" dBG"D7" cAF | 
 A3"G" G2 |]  