Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:A
['eaga fedc']  
X:1
L:1/8
M:4/4
K:A
 c>A (3(AAA) (eA)ce | eaga fedc | d>B (3(BBB) (fB)de | fefg afed | c>A (3(AAA) (eA)ce | eaga fedc | 
 defg abaf | (3(efg) (ae) cAA z | e2 (ce) Aece | aAgA fAeg | f2 (df) Bfdf | bBaB gBfB | 
 (3(efe) (ce) aece | eaga fedc | defg abaf | (3(efg) (ae) eAA z |]  