Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
M:4/4
K:G
['(3def g>ed>B c>ed>c (3BcB G2 G2 g>a', 'b>ag>f e>dc>B']  
X:1
L:1/8
M:4/4
K:G
|: (3def | g>ed>B c>ed>c | (3BcB G2 G2 g>a | b>ag>e f>ga>g | (3fgf d2 d3 B | c>eg>c B>dg>b | 
 A>^ce>a G>Bd>g | (3efg a>b (3cba f>a | (3gag f>a g2 :: (3edc | B>g (3ggg G>g (3ggg | 
 b>ag>f e>dc>B | A>a (3aaa ^c>a (3aaa | c>ba>g f>ed<c | B>g g2 G>g g | b>ag>f e>dc>B | 
 c>ea>e (3Bcd g>d | (3cBA F>A G2 :|  