Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:D
['F<AA>B d>ef>e d>BA>d', 'f>ga>b a<fd>a b>ge>g f>ed>A'  
X:1
L:1/8
M:4/4
K:D
 D/D/D D>E F<AA>B | d>ef>e d>BA>d | B/B/B B>A B2 b2 | a<da>f e2 d2 | D3 E F<AA>B | d>ef>e d>BA>d | 
 B<dA<d G<dF>d | f/e/d/c/ d>F E2 D2 || f>ga>b a<fd>a | b>ge>g f>ed>A | B/B/B B>A B2 b2 | 
 a<dg>f e3 g | f>ga>b a<fd>a | b>ge>g f>ed>A | B<dA<d G<dF>d | f/e/d/c/ d>F E2 D2 ||  