Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
M:4/4
K:C
['A2 AB', 'adfd c2 (ec) gcec d2 (fd) adfd'  
X:1
L:1/8
M:4/4
K:C
 |[M:4/4][K:D] (3Tdfec A2 AB | cdef{a} gfge | dfec A2 AB | cBcG TED D2 :| d2 (fd) adfd | 
 c2 (ec) gcec | d2 (fd) adfd | eaTag ed d2 | defg afge | cdef g2 fg | (3(agf) (3(gfe) fded | 
 ea{b}ag ed d2 |]  