Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:9/8
K:Bmin
['(B/c/) d2 f', 'd2 g'  
X:1
L:1/8
M:9/8
K:Bmin
 (B/c/) |:"Bm" d2 f (dB)B (dB)B | d2 f (dB)B"A" cBA |"Bm" d2 f (dB)B (dB)B |"A" cde efd cBA :: 
"D" d2 g (fd)a (fd)a | d2 g (fd)a"A7" gfe |"D" d2 g (fd)a (fd)a |"Em" g2 e efd"A" cBA :|  