Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['e A3 ABcd e^def g3 e f', 'Adfa gee^d efga baa^g a2 fa b3'  
X:1
L:1/8
M:2/2
K:D
 e A3 ABcd | e^def g3 e | f d3 A d3 | e/f/g af gfdf | e A3 ABcd | e^def g3 e | f d3 ed B/c/d |1 
 Addc d f3 :|2 Addc de f/g/a |: b3 a gabg | a d3 Adfa | gee^d efga | baa^g a2 fa | b3 a gabg | 
 a d3 Adfa | g2 eg fedc |1 Addc de f/g/a :|2 Addc d f3 ||  