Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:C
['ABA Ace eac B2 A cBA d2', 'a e2 a'  
X:1
L:1/8
M:4/4
K:C
[M:6/8][K:A] .abc E | ABA Ace | eac B2 A | cBA d2 B | cAA aec | ABA Ace | eac B2 A | cBA d2 B | 
 cAA A2 :: a | e2 a f2 a | e2 a fec | efg aec | eac ecA | cBc dcd | eac B2 A | cBA d2 B | cAA A2 :|  