Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:Amix
['(3Bcd e>g', 'A>^g a2 e>a'  
X:1
L:1/8
M:4/4
K:Amix
|: A>G | (3Bcd e>g f>de>A | (3Bcd e>f g>fg>A | (3Bcd e>g f<de>a | g<ed>B A2 :| A>^g | 
 a2 e>a f>de>d | c>AB>A c<ee>^g | (3aaa e>a f<de>a | g>ed>B (3AAA A>^g | a2 e>a f<ae<a | 
 c>AB>A c<ee>^g | (3aaa e>g f>^e (3fga | g<ed>B A2 ||  