Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['(3DAA (3FAA', '(3eAA (3fAA'  
X:1
L:1/8
M:4/4
K:D
|: AF | (3DAA (3FAA (3DAA (3FAA | defe dcBA | (3eAA (3fAA (3gAA (3fAA | (3efe (3dcB (3ABA (3GFE | 
 (3DAA (3FAA (3DAA (3FAA | defe dcBA | (3eAA (3fAA gfec | d2 f2 d2 :: cd | eAAA fAAA | GAfA eAAA | 
 (3eAA (3fAA (3gAA (3fAA | (3efe (3dcB (3ABA (3GFE | (3DAA (3FAA (3DAA (3FAA | defe dcBA | 
 (3eAA (3fAA gfec | d2 f2 d2 :|  