Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:D
['FG A3 B AFDF AFdB AFEF GBGE', 'A2 (cd) e3 f ecAc ecaf ecAc'  
X:1
L:1/8
M:2/2
K:D
 FG | A3 B AFDF | AFdB AFEF | GBGE FAFD | E2 EE E3 A | FDFA d3 f | edcB A2 Bc | d2 cB c2 B2 | 
 A2 AA A2 :: (cd) | e3 f ecAc | ecaf ecAc | dfdB cec^A | B2 BB B2 (Bc) | d3 B AFDF | GABc d2 cB | 
{B} A2 (GF) EGFE | D2 DD D2 :|  