Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:4/4
K:D
['', 'A2 d2 fd B2 dB ABAG (FD)', 'defg a2 (fd)'  
X:1
L:1/8
M:4/4
K:D
 A2 |: d2 fd B2 dB | ABAG (FD) D2 | FGAB cdef |1 eBBd c2 A2 :|2 egec d2 A2 || defg a2 (fd) | 
 gfed cABc | defg a2 (fd) | egec d2 A2 | defg a2 (fd) | gfed cBAG | FGAB cdef | egec d2 ||  