Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:A
['B2 B>B B2', '(3cde f2 a>a (a2 f2) e2 a>a'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:A
 A2 | e2 e>e e2{g} (3fed | c2 c>c c2 (3ABc |"^tr" B2 d>f e>dc>B |{B} A2 A>A A2 a>e | 
 ff/f/ ff f2 a>f |{f} ee/e/ ee e2 c>e | (e/d/c/d/) B>d (d/c/B/c/) A>c | B2 B>B B2 :: e>c | 
 B2 B>B B2 e>B | c2 c>c c2 (3cde | f2 a>a (a2 f2) | e2 a>a a2 (3fed | (3cde (3fga (3efd (3cdB | 
 A>Bcc (c>d)ee | e2{g} (3fed c2"^tr" B2 | A2 A>A A2 :|  