Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:4/4
K:C
['ged B2 A BGE G2 A BdB', 'def gfg'  
X:1
L:1/8
M:4/4
K:C
[M:6/8][K:G] b[Q:1/8=320]f | ged B2 A | BGE G2 A | BdB ABA | GBd e2 f | ged B2 A | BGE G2 A | 
 BdB AGA | BGG G2 :| B | def gfg | eaa eaa | bag e2 d | efg efg | def gfg | afd efg | edB AGA | 
 BGG G2 :|  