Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/2
K:A
['a (e<c)(c<B) A>BA>E F>AE>A F>AE>a (e>c)(c>B) A>BA>B', 'z =g (f<d)(d<B) c>de>c (d>BB>G) A>Bc>E F>AE>A'  
X:1
L:1/8
M:2/2
K:A
 a | (e<c)(c<B) A>BA>E | F>AE>A F>AE>a | (e>c)(c>B) A>BA>B | (c<e)(e>^d) e2 z :: =g | 
 (f<d)(d<B) c>de>c | (d>BB>G) A>Bc>E | F>AE>A F>AE>d | (d/c/B/A/) (c/B/A/G/) A2 z :|  