Develop a piece of music by incorporating the provided motif and following the outlined musical structure represented by alphabet characters.
X:1
L:1/8
M:4/4
K:Amix
['AE E2', 'egaf g2 dg egdg g2 bg ageg', 'agef g2 fa']  
X:1
L:1/8
M:4/4
K:Amix
|: AE E2 AEcE | AE E2 GEDE | AE E2 ABcA | cdec d2 cd | eaa_a =agef | gdeg dBGB | AGED EA A2 |1 
 cedB A2 AG :|2 cedB A2 cd |: ecde cA A2 | a2 ag egaf | g2 dg egdg | g2 bg ageg | a2 ea c'aea | 
 ge e2 defg | edBA GABd | eAdB A2 cd :: eA A2 EAce | ae e2 agef | g2 fa gede | g2 bg aged | 
 cA A2 EAce | ae e2 agef | g2 fa gedB |1 GABG A2 cd :|2 GABG A4 ||  