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=300
M:9/8
K:G
['gfg edc BAG', 'B ABA TA2 B']  
X:1
L:1/8
Q:1/8=300
M:9/8
K:G
 gfg edc BAG | gfg efg af>d | gfg edc BAG | ABA ABc d2 B :: ABA TA2 B AGE | ABA ABc d2 B | 
 ABA TA2 B G2 G | dBG GBc d2 B :|  