Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['A/B/ d>edA B>de>g f>ed>A{c} B2 Bf/e/ d>ed>A', 'A g f>ga>f g>fe>g f>gad{c} B2 Bg']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Mod.o" A/B/ | d>edA B>de>g | f>ed>A{c} B2 Bf/e/ | d>ed>A B>de>g | f>ed>B{B} A2 A :: g | 
 f>ga>f g>fe>g | f>gad{c} B2 Bg | (f>g)a (f/a/) b>eef | d>e (e/d/).c/.B/{B} A2 A :|  