Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/4
K:D
['d2 e>f', 'gfed dBcd'  
X:1
L:1/8
M:2/4
K:D
 A | d2 e>f | d2 AA | d2 e>f | d3 f | gfed | dBcd | Afed | e3 :: a | gfed | dBcd | Afed | e2 a2 | 
 gfed | dBcd | Afea | d3 :|  