Formulate a musical piece by utilizing the specified motif and alphabet-based structure.
X:1
L:1/8
M:4/4
K:Amix
['e2 dg', 'cA A2', 'B2 gd']  
X:1
L:1/8
M:4/4
K:Amix
|: e2 dg eABd | e2 Ae dGBd | e2 dg eABA | B2 gd BGBd :| cA A2 cABd | cA A2 dGBd | cA A2 eAcA | 
 B2 gd BGBd | cA A2 cABd | cA A2 dGBd | afge fded | B2 gd BGBg |: fedg eABd | edeg dGBg | 
 fedg eABA |1 B2 gd BGBg :|2 B2 gd BGBd ||  