Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:D
['f>e (dB A).F (A>B d).e f2 (e{fe}d)']  
X:1
L:1/8
M:2/4
K:D
 f>e | (dB A).F | (A>B d).e | f2 (e{fe}d) | B{cB}A (d>e) | (ea) (ab) | (af d>)e | f>f{g} (fe/d/) | 
 e2 de | (fa) (ab) | (Taf) de | Tf2 (e{fe}d) | BA z A | Bc dB | AB de | f2 (d/f/)e | d2 ||  