Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
Q:1/2=80
M:4/4
K:G
['G2 g2 g2 d>B c>Bc>d e>fg>e d>BG>B', 'B2 B>A B>cd>B c>Bc>d e>fg>e d>BG>B'  
X:1
L:1/8
Q:1/2=80
M:4/4
K:G
|: (3DEF |"^dotted or undotted" G2 g2 g2 d>B | c>Bc>d e>fg>e | d>BG>B e>dc>B | A>Bc>A G>FE>D | 
 G2 g2 g2 d>B | c>Bc>d e>fg>e | d>BG>B e>cA>F | G2 G2 G2 :: (3FGA | B2 B>A B>cd>B | c>Bc>d e>fg>e | 
 d>BG>B e>dc>B | A>Bc>A G>FE>D | B2 B>A B>cd>B | c>Bc>d e>fg>e | d>BG>B e>cA>F | G2 G2 G2 :|  