Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:4/4
K:D
['', 'A<DF>A d2 c>d e<Ac>e', 'd>f e>a^g>f e>cd>B (3ABA ^G>B A2 =G>A'  
X:1
L:1/8
M:4/4
K:D
 F>G |: A<DF>A B>GB>d | A<DF>A d2 c>d | e<Ac>e f>d (3fga | e>dc>B A>GF>G | A<DF>A B>G (3Bcd | 
 A<DF>A d2 c>d | e<Ac>e f>ae>c |1 d2 d>c d>B (3dcB :|2 d2 d>c d>fa>f || e>Ac>e f2 d>f | 
 e>Ac>e f2 d>f | e>a^g>f e>cd>B | (3ABA ^G>B A2 =G>A | (3FED F>A d>fa>f | g2 B2 b2 a>g | 
 (3faf d>f (3ege c>e | d>fe>c d>fa>f | e<Ac>e f2 d>f | e<Ac>e f2 d>f | e>a^g>f e>cd>B | 
 (3ABA ^G>B A2 =G>A | (3FED F>A d>fa>f | g2 B2 b2 a>g | (3faf d>f (3ege c>e | d2 f2 d2 c>B ||  