Generate music with the following musical form in terms and the given motif.
X:1
L:1/4
M:4/4
K:Gdor
['z G2', 'z2 D3/4 E/4 F/4 D/4 G/4 A/4', 'B c d'  
X:1
L:1/4
M:4/4
K:Gdor
 G4 z2 d2 | d2 ^F G A4 | z G2 G A3/2 A/ F2 | z D E ^F G3/2 F/ E/ D/ E | D4 z2 D2 | F4 z2 z B | 
 A d c =B c2"^(1)" z B A4 | z/ G/ G3/2 G/ E z/ c/ c3/2 c/ A2 B B A | B2 z D E F F E | 
 F2 z c B A A3/2 A/ A4 | z G2 D z G2 F/ _E/ D G3/2 G/ ^F | z G/ A/ B G z B/ c/ d B | 
 z B/ c/ d B z d d A A/ A/ ^F z2 |: D3/4 E/4 F/4 D/4 G/4 A/4 B/4 G/4 d3/2 A4 | z2 z d c B c3/2 B/ | 
 B2 F F/"^(2)" F/ B2 G G/ G/ c2 A A/ A/ d3 c/ c/ d B/ c/ d3/2 B/ A3 A G4 :|[M:3/2] B2 B2 c2 c4 c2 | 
[M:4/4] d3 c/ B/ A B c d | B c d z/ d/ c B3/2 A/ G2 ^F G A3/2 A/ G2 ^F !fermata!G4 |]  