Craft a musical arrangement that integrates the provided motif and upholds the required musical structure.
X:1
L:1/8
M:4/4
K:D
['B>dg>f e>dc>B', 'd2 (3(cd^d) e>^de>fg>ec>A d>cd>e f>dA>f (3(gag) (3(fgf)'  
X:1
L:1/8
M:4/4
K:D
 (3(FG^G) | A>^GA>BA>df>d | B>dg>f e>dc>B | A>^GA>B A>FD>F | E>^DE>F E2 (3(FG^G) | A>^GA>B A>df>d | 
 B>dg>f e>dc>B | A>df>d g>ec>e | d>ed>c d2 :: (3(cd^d) | e>^de>fg>ec>A | d>cd>e f>dA>f | 
 (3(gag) (3(fgf) (3(efe) (3(ded) | (3(cdc) (3(BcB) A2 (3(FG^G) | A>^GA>B A>df>d | B>dg>f e>dc>B | 
 A>df>e g>ec>e | d>ed>c d2 :|  