Create musical composition by adhering to the given musical structure represented by letters and integrating the given motif.
X:1
L:1/8
M:4/4
K:Amin
['(AB) c2 (BA G2)', 'A2 e2 (gede) (g2 (ga)) (ge)(de) g2']  
X:1
L:1/8
M:4/4
K:Amin
 (AB) | c2 (BA G2) (AB) | c2 (BA G2) (cd) | e2 (de) c2 (BA) | (A4 G2) (de) | f2 (fg) e2 (ef) | 
 (d^cde) (a3 ^g) | (a=g)(ed (c)A)(B^G) | A4 A2 :| | e2 | (gede) (g2 (ga)) | (ge)(de) g2 e2 | 
 (a^gab) (a=geg) | b4 (ab)(ag) | ^f2 (fg) e2 (e=f) | (d^cde) (a3 ^g) | (a=g)(ed (c)A)(B^G) | 
 A4 A2 |]  