Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/4
K:G
['AG EG AG [G,G][G,G]', 'AG EG', 'ed BA Bd ef e2 d2'  
X:1
L:1/8
M:2/4
K:G
|: ([D-A][DB]) [DB][DB] | AG EG | AG [G,G][G,G] | [G,G]2 Bd | ed BG | AG EG | AG [G,G][G,G] | 
 [G,G]2 [GB]2 :| ([D-A][DB]) [DB][DB] | AG EG | AG [G,G][G,G] | [G,G]2 Bd | ed BG | AG EG | 
 AG GG |: g3 g | ed [G,D]2- | [G,D] g2 a | b2 a2 | g2 bg | ed BA | Bd ef | e2 d2 | ef gf | ed BA | 
 Bd ef | e2 d2 | [DA]B [DB]G | AG EG |1 AG [G,G][G,G] :|2 AG [G,G][G,G] | G4 B4 ||  