Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/4
K:G
['gg gf/e/ dd d2', 'BB(B>A) cc(c>B)', 'd>Ad>A d2', 'A>AA>A A2 g2'  
X:1
L:1/8
M:2/4
K:G
|: gg gf/e/ | dd d2 |{c} BA/G/ FG | A/G/F/E/ D2 | gg gf/e/ | dd d2 | BA/G/ DF | GG G2 :: BB(B>A) | 
 cc(c>B) | dd d(c/B/) | (A/G/F/E/) D2 | BB(B>A) | cc(c>B) | (e/f/g/e/) (d/B/A/G/) | DF G2 :| 
[M:2/4][K:D] d>Ad>A | d2 (3(efg) | fddA | dA FD | d>Ad>A | d2 (3(gab) | afef | d2 :: (3(Ace) | 
 A>AA>A | A2 g2 | fdBB | ecAA | A>AA>A | A2 g2 | faAc | d2 :|  