Formulate a musical piece by utilizing the specified motif and alphabet-based structure.
X:1
L:1/8
M:4/4
K:A
['e2 fe c2 Ae f2 B2 B4', 'Agfe d2']  
X:1
L:1/8
M:4/4
K:A
|: e2 fe c2 Ae | f2 B2 B4 | (3dcB (3AGF Ee^de | fe^de c2 Ac | e2 fe c2 Ae | f2 B2 B4 | 
 (3dcB (3AGF EdcB |1 A2 a2 a2 e^d ||2 A2 a2 a4 |:[K:D] f2 d2 dfaf | b2 e2 e2 gf | e2 c2 c2 a2 | 
 afdf a2 a2 | f2 d2 dfaf | b2 e2 e2 gf | (3efe d2 (3cdc B2 |1 Agfe d2 a2 :|2 Agfe d2 e^d ||  