Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['(fe) d2 A2 B2 (AF) (AB)(de) (fe)(dB)', '(DE) F2 A2', '(ef) g2 f2 e2 (de) (fe)(dB) (AF)(EF)'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Moderate""^A" | (fe) | d2 A2 B2 (AF) | (AB)(de) (fe)(dB) | (AF)(EF) D2 D2 |"^fine" D6 |]"^B" |: 
 (DE) | F2 A2 d2 (ef) | g2 f2 e2 (de) | (fe)(dB) (AF)(EF) |"^->A" A6 :|  