Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:Amin
['(uc>.B) (vA>.A,)(A,>.B,) (C>.D)(E>.F) G>AG>E G2 c>B A>A,A,>B,', '(3Bcd (e>.c)(d>.B) (B>.A)(A>.B) (A<a)a>.b a>.bg>.d e<aa>.b g2'  
X:1
L:1/8
M:4/4
K:Amin
 (uc>.B) |"^4" (vA>.A,)(A,>.B,) (C>.D)(E>.F) |"^SEGUE" G>AG>E G2 c>B |"^4" A>A,A,>B, C>DE>D | 
 E>Ac>A B>Ec>B |"^4" A>A,A,>B, C>DE>F | G>"^4"AG>E G2 c>d | (3edc (3dcB (3cBA (3BAG | E>Ac>B A2 :: 
({B} uA>.^G) | (vA<a)(ua>.b) (a>.b)(g>.d) | (e<a)(a>.b) g2 (f>.d) | (e<a)(a>.g) (3edc (3Bcd | 
"^4" (e>.c)(d>.B) (B>.A)(A>.B) |"^SEGUE" (A<a)a>.b a>.bg>.d | e<aa>.b g2 (3(gab) | 
 a>fg>b e>c (3(Bcd) |"^4" e>cd>B A2 :|  