Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:4/4
K:G
['g2 fd edBA GABG AGEF GFGA BABd', 'b2 ag'  
X:1
L:1/8
M:4/4
K:G
 (3def | g2 fd edBA | GABG AGEF | GFGA BABd | (3efg af gfed | g2 fd edBA | GABG AGEF | GFGA BABd | 
 (3efg af g2 ef || (3gab eg b2 ag | (3fga df a2 gf | (3gab eg b2 ag | (3fga df e2 ef | 
 g b2 b b2 ag | f a2 a a2 gf | (3gag bg (3fgf af | edef gbaf ||  