Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['A, D2 AGFE Dddc defd D2 ADFA', '(FE)EF D2 AGFE Dddc defg (3(agf) (3(gfe)'  
X:1
L:1/8
M:2/2
K:D
 A, |]"D" D2 (3(FED)"A" AGFE |"D" Dddc defd |"D" D2 (3(FED)"A" ADFA |"G" (3(Bcd) (AF)"A" (FE)EF | 
"D" D2 (3(FED)"A" AGFE |"D" Dddc defg | (3(agf) (3(gfe) fdec |"G" (3(Bcd) (AF)"A" (FE)Ec |] 
"D" dcdB"A" ADFA |"D" ADFB ADFA |"D" dcdB"A" ADFA |"G" (3(Bcd) (AF)"A" FEEc |"D" dDcD"G" BDAD | 
"D" BAFA"A" Bcde |"D" (3(fgf) (3(efe) dcBA |"G" (3(GFE) (3(FED)"A" CEA,C |]  