Generate a melody that complies with the prescribed musical outline.
'Sectional: Through Composed'  
X:1
L:1/4
M:3/4
K:G
"^Moderato." (e/d/) | (^c d) B | G2 (e/d/) | (^c d) B | (d =c) (d/c/) | (B c) A | F2 (e/d/) | 
 ^c/d/e/d/=c/A/ | G2 :: d | (B d) d | (B d) d | g/f/e/d/c/B/ | (d c) c | (A c) c | (A c) c | 
 a/g/f/e/d/c/ | c B :|"^Allegro." d | g f e | d ^c d | e d ^c | d B d | g f e | d ^c d | e d ^c | 
 d2 d | g/g/f/f/e/e/ | d/d/^c/c/d/d/ | e/e/d/d/^c/c/ | d/d/B/B/d/d/ | g/g/f/f/e/e/ | 
 d/d/^c/c/d/d/ | e z [fA] | [gBD] z z |] B3 | B3 | B A B | (d2 c) | A3 | A3 | A G A | B3 | B3 | 
 B3 | B A B | (d2 c) | A ^G A | d c A | G3- | G z G | e3 | d3 | c d3/2 c/ | B3 | A ^G A | 
 e d3/2 c/ | B3- | B z G | e3 | d3 | f e f | g3 | A ^G A | d c3/2 A/ |"_D.C. to Allegro." G3- | 
 G z |]  