Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:2/4
K:D
['d2 Ad FdAd', 'ddfd adfd'  
X:1
L:1/8
M:2/4
K:D
 f | d2 Ad | FdAd | dfed | ceef | d2 Ad | FdAd | cdeg | fd d :: f | ddfd | adfd | ddfd | ceef | 
 ddfd | adfd | cdeg | fd d :|  