Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/4
M:3/4
K:G
['B2 d']  
X:1
L:1/4
M:3/4
K:G
 D | E2 E | G2 A | d3 | B2 d | e2 f | g2 f | e2 ^c | d2 B | A2 G | A2 A | B2 d | ^c2 e | B2 B | 
 A G F | E3 | E2 :|  