Develop a piece of music by incorporating the provided motif and following the outlined musical structure represented by alphabet characters.
X:1
L:1/8
Q:1/8=120
M:2/4
K:G
['BD BD B/A/B/c/ ed cA f/g/a/f/', '', 'ef/e/ dD FA Bc/B/ Af/e/ |1 ddd']  
X:1
L:1/8
Q:1/8=120
M:2/4
K:G
"^polka" d/c/ |S BD BD | B/A/B/c/ ed | cA f/g/a/f/ | gg g/e/d/c/ | BD BD | B/A/B/c/ ed | 
 cA f/g/a/f/ |1 ggg :|2 ggg z ||"^final" gf g2 |][K:D] fg/f/ ef/e/ | dD FA | Bc/B/ Aa/g/ | 
 fg/f/ e2 | fg/f/ ef/e/ | dD FA | Bc/B/ Af/e/ |1 ddd z :|2 dd d/e/!D.S.! ||  