Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:3/4
K:A
['(3(CEA) c2', '(3(dEG) B2 B2 (3(cCE) A2 A2 (3(GBd)', 'gf (3(ga^a) b2 b2 (3(e^ef) g2 g2'  
X:1
L:1/8
M:3/4
K:A
 E2 | C>E A2 B2 | c4 A2 | (3(CEA) c2 d2 | e4 c2 |{d} c>^B c2 a2 | g4 B2 |{c} B>^A B2 f2 | e4 ED | 
 (3(CEA) c2 c2 | (3(FBc) d2 d2 | (3(GBd) f2 e2 | e3 c AE | (3(CEA) c2 c2 | (3(FBc) d2 d2 | 
 (3(GBd) f2 e2 | A4 || G>A |{c} B>^A B2 e2 | c4 fe | ^dc' b2 ^a2 | b4 GA |{c} B>^A B2 e2 | c4 fe | 
 ^dc' b2 d2 | e4 d>c | (3(dEG) B2 B2 | (3(cCE) A2 A2 | (3(GBd) f2 e2 | e>c' a>c f>e | 
 (3(dEG) B2 B2 | (3(cCE) A2 A2 | (3(GBd) f2 e2 | A4 ||[K:D] A2 | f>g a2 a2 | a4 c2 | d>e f2 f2 | 
 f4 g>f | e>f g>a b>b | b3 g ec | d>e f>^e f>d | a4 gf | (3(ga^a) b2 b2 | (3(e^ef) g2 g2 | 
 c>d e>f g>a | b3 a gf | (3(ga^a) b2 b2 | (3(e^ef) g2 g2 | c>b a>b a>c | d4 |]  