Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/8
M:9/8
K:D
['d2 A', 'Bcd dcB'  
X:1
L:1/8
M:9/8
K:D
 d2 A BAG FGA | d2 A BGB gfe | d2 A BAG FGA | EFG GFE AFA :| B2 F Bcd dcB | B2 G Bcd dcB | 
 c2 A cde edc | fgf fed edc :|  