Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:4/4
K:D
['dB AF', 'D2 A/B/c/d/ ec A>B A2 A/B/d/e/ fd', 'D2 de/f/ g(3f/g/f/ e>c d(3B/c/B/ A>G FD/F/'  
X:1
L:1/8
M:4/4
K:D
|: D>E | FA d>e d2 cB | AF F>G F2 ED | (3FGA dB AF DF | EF/E/ EF/E/ EF/E/ D>E | 
 (3FGA de d>e f/e/d/c/ | B/A/F FG FG/F/ ED | FA dB AF EC | D2 D>C D2 :: A/B/c/d/ | 
 ec A>B A2 A/B/d/e/ | fd B>c B2 de | fd ec dB AF | FE E>F E2 D>E | FA d>e d2 f/e/d/c/ | 
 BA F>E F2 FE/D/ | FA dc/B/ AF EC | D2 D>C D2 :: de/f/ | g(3f/g/f/ e>c d(3B/c/B/ A>G | 
 FD/F/ A/D/(3F/G/A/ d2 de/f/ | gf ec dB AF | (3FGA D>F EF/E/ D>E | FG/A/ d>c d>e f/>e/d/c/ | 
 BA FG F2 E>D | F/G/A dF AF EF | D2 D>C D2 :|  