Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
['B2 e^d e2 B2 fe f2 B2', 'e6 B2 B4 cdcBcA c2 c4 ded=cdc'  
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
 B2 e^d e2 | B2 fe f2 | B2 gfga | F4 g2 | a2 f2 ^d2 | B2 a4 | g2 agfg | e6 :: B2 B4 | cdcBcA | 
 c2 c4 | ded=cdc | ^d2 d4 |1 e2 fgag | f2 B2 ^d2 | e6 :|2 e2 dcBA | GA F4 | E6 |]  