Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:2/2
K:D
['d2 cd AFDd cdAF DFAF', '^gafd eB B2'  
X:1
L:1/8
M:2/2
K:D
 d2 cd AFDd | cdAF DFAF | E3 F GFED | C2 AE BEcE | d2 cd AFDd | cdAF DFAF |1 Gfgf efed | 
 ecAc d3 c :|2 Gfgf edcB | Acec d3 a || ^gafd Aa^ga | fdAa ^gafd | eB B2 bagf | edcB Aa^ga | 
 ^gafd Aa^ga | fdAa ^gafd | eB B2 cBAG | FDEC D3 a | ^gafd Aa^ga | fdAa ^gafd | eB B2 bagf | 
 edcB AGFE | D2 cd AFDd | cdAF DFAF | Gfgf efed | cAGE D3 c ||  