Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
['AFAdAF dAdfdA fdfagf e3', 'd2 ec/d/ ecAe fd/e/ fdfa ^g2 e2'  
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
 AFAdAF | dAdfdA | fdfagf | e3 d e2 | AFAdAF | dAdfdA | fdfagf | e3 d d2 :: ec/d/ ecAe | 
 fd/e/ fdfa | ^g2 e2 ga | a3 ^g a2 | aa/g/ fafd | ff/e/ dfdA | dfeagf | e3 d d2 :|  