Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:none
['', 'A/G/ FG ^GA f2 z f/g/ fe', 'dA/A/ BA/A/ ce BA/A/ df Ag/f/ eA/A/', 'g g e e c cB BG'  
X:1
L:1/8
M:2/4
K:none
[K:D] A/G/ |: FG ^GA | f2 z f/g/ | fe z e/f/ | ed z A/G/ | FG ^GA | f2 z f/g/ | fe B/c/f/e/ |1 
 dd dA/G/ :|2 dd d z |: Ag/f/ eA/A/ | Af/e/ dA/A/ | BA/A/ ce | BA/A/ df | Ag/f/ eA/A/ | Af/e/ d2 | 
 c>B A/G/F/E/ |1 DD D z :|2 DD Dd/d/ ||[K:G] d2 Bg | f2 z e/^d/ | e2 z d/c/ | d2 B2 | d !>!B2 g | 
 g !>!f2 e | e !>!d2 c | cB BG | d2 Bg | f2 z e/^d/ | e2 z d/c/ | d2 B2 | dB/B/ Bg | gA/A/ Ae | 
 f>e d/c/B/A/ | Gg g z |]  