Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/16
Q:1/8=30
M:3/8
K:G
['B2gfgd B4 cB', '=g4 AB c2c2c2 A2afdc B2d2d2 dgd2AB c2c2c2']  
X:1
L:1/16
Q:1/8=30
M:3/8
K:G
"^primo" dc | B2gfgd | B4 cB | c2a^gaf | =g2d2dc | B2gfgd | B4 cB | c2a^gaf | =g4 :: AB | c2c2c2 | 
 A2afdc | B2d2d2 | dgd2AB | c2c2c2 | c2afdc | Bgbgfa | g4 :|  