Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/2=84
M:4/4
K:Bmin
['d B/B/B B>A (FAA)d B/B/B B>c d>efe', 'bBB a (f/g/a) da fdad cAeA cdeg'  
X:1
L:1/8
Q:1/2=84
M:4/4
K:Bmin
 d | B/B/B B>A (FAA)d | B/B/B B>c d>efe | (d/c/B/c/ d)A FAAd | B/B/B f^a bBB :| a | 
 (f/g/a) da fdad | cAeA cdeg | fdad fadb | afef dBBa | bafb adfe | d>BAd FdAd | GdAB defb | 
 afe>f dBB |]  