Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:3/4
K:Gmin
['D2 GA/G/ ^F>G A2 B>(G (3A)Bc d2', 'D2 D2 de/d/ (3c(dc) B>(A (3B)cB (3A(BA)'  
X:1
L:1/8
M:3/4
K:Gmin
 D2 GA/G/ ^F>G | A2 B>(G (3A)Bc | d2 dc A>B | G2 A^F D2 | D2 GA/G/ ^F>G | A2 B>(G (3A)Bc | 
 d2 dc A>B | G2 A^F D2 :: D2 de/d/ (3c(dc) | B>(A (3B)cB (3A(BA) | G>^F GA c>B | G2 A^F D2 | 
 D2 de/d/ (3c(dc) | B>(A (3B)cB (3A(BA) | G>^F GA c>B | G^F G4 :|  