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:6/8
K:A
['ecA (BA)B cAF EFA', 'caa cgg fgf fga']  
X:1
L:1/8
M:6/8
K:A
 e | aga ecA | (BA)B cAF | EFA cBA | BcB Bce | agf ecA | (BA)B cAF | EFA (BA)B | cAA A2 :: B | 
 caa cgg | fgf fga | efe ecA | BcB Bcd | caa cgg fgf fga | ecA (BA)B | cAA A2!D.C.! :|  