Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
['d>edc BA A2 d>dde f2 d2 g>agf/e/']  
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
"^moderate" d>edc BA A2 | d>dde f2 d2 | g>agf/e/ f>gfd | e>def g2 g z | g>age f>gag | fded B2 A2 | 
 d>edc BcAF | Bcde d2 d2 |]  