Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:6/8
K:D
['B AFD'  
X:1
L:1/8
M:6/8
K:D
 B |"D" AFD DED | AFD D2 B | AFD DEF |"Em" GFG"A" EFG |"D" AFD DED | DFA"G" d2 e | 
"D" fed"G" B/c/dB |"D" AFD D2 :: f |"D" afd ded | afd d2 f | afd def |"G" gfg"A" efg | 
"D" a^ga"G" ba=g |"D" agf"A7" gfe |"D" fed"G" B/c/dB |"D" AFD D2 :|  