Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:4/4
K:D
['e c']  
X:1
L:1/8
M:4/4
K:D
 d2 D F G A | B e d c B c | d2 D F G A | B e c d3 | d2 D F G A | B g e c B c | d d D F G A | 
 B e c d3 | f e d f e d | f e d f e d | e c d e c d | e/f/ g f e2 d e | d D F G A | B g e c B c | 
 d2 D F G A | B e c d3 |]  