Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['(3ABc d2 ec ABce dcAF DEFG ABGA', 'D2 A2 (3ABc de fefg fdec dcAG'  
X:1
L:1/8
M:2/2
K:D
 (3ABc | d2 ec ABce | dcAF DEFG | ABGA FGAB | c2 AA A2 (3ABc | d2 ec ABce | dcAF DEFG | ABGA FDEC | 
 D2 DD D2 :: A2 | (3ABc de fefg | fdec dcAG | A2 AG FGAB | c2 AA A3 g | fdec d2 cA | BGAF DEFG | 
 ABGA FDEC | D2 DD D2 :|  