Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:Amix
['f ecA ABc d2 c TB2 A', 'fdf ece'  
X:1
L:1/8
M:6/8
K:Amix
 f | ecA ABc | d2 c TB2 A | ecA ABA | B2 c d2 f | ecA ABc | d2 c TB2 A | (c/d/e)c (B/c/d)B | 
 cAA A2 :: e | fdf ece | fdf ece | f^ga edc | B2 c d2 f | ef^g agf | edc TB2 A | (c/de)c (B/c/d)B | 
 cAA A2 :|  