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
['', 'g>ef>d e2', 'd>eg>a b>ga>b']  
X:1
L:1/8
M:4/4
K:G
 g |: e>dB>A B>GG>B | d>ed>B d2 dg | e>dB>A B>GG>f |1 g>ef>d e2 eg :|2 g>ef>d e2 ee/g/ || 
 d>eg>a b>ga>b | d<ed>B d2 de | d>eg>a b>ga>b | a>ge>d e2 eg | d>eg>a b>ga>b | d<ed>B d2 dg | 
 e>dB>A B>GG>B | g>ef>d e2 e2 ||  