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:D
['AFED FAAB A2 de fBBA', 'D3 g fgab afde fdad fddf edga'  
X:1
L:1/8
M:4/4
K:D
 F | A2 AB AFED | FAAB A2 de | fBBA Bcde | f2 gf e2 dB | FAAB AFED | FAAB A2 de | 
 fBBA BcdB AFEF D3 :| g | fgab afde | fdad fddf | edga beef | gebe geeg | fgae bfaf | defd efde | 
 fBBABcdB | AFEF D3 :|  