Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:4/4
K:G
['a gegd B<BGd BdGd B<BBa gegd B<BGB', 'cAA e BGdG BGdG BGdB cAAe BGdG'  
X:1
L:1/8
M:4/4
K:G
 a | gegd B<BGd | BdGd B<BBa | gegd B<BGB | e2 dB cAA :: e | BGdG BGdG | BGdB cAAe | BGdG ABdB | 
 e2 dB cAA :|  