Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['B2 B<A FEFA B2 e2 e2 d<B', 'B2 B2', 'e d2 B A2 z ded dBG', 'd2 g B2 e d2'  
X:1
L:1/8
M:4/4
K:G
|: B2 B<A FEFA | B2 e2 e2 d<B | bagb agfa | gfeg f2 B z | G<FG<E e<de<B | A<GA<F f2 ge | 
 dBAG B2 d/B/A | G2 E2 E2 z2 :: B>AGB A>GFA | GFEG D2 B2 | BEBE DFDF | G2 G/F/E B2 B2 | 
 B2 e2 efed | B2 Bc BAGF | E2 e2 efed | e2 Tf2 g3 f | ed^cd dcdf | edef g2 fe | dBAG B2 d/B/A | 
 GF/G/ E2 E2 z2 ::[M:6/8][K:G] E2 e G2 e | d2 B A2 z | ded dBG | e3 Tf3 | b3 gee | a3 fdd | 
 gfe g/a/bB | e3 e3 |: EGB EGB | FAd FAd | GBg GBg | f3 e3 | d2 g B2 e | d2 g B2 e | d2 B AFD | 
 E3 E3 ||  