Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:3/4
K:G
['(3DEF G2 Bd']  
X:1
L:1/8
M:3/4
K:G
 Bd^cded | cA e2 ed | Bd^cdge | cA F2 D2 | (3DEF G2 Bd | Ac e2 ed | (3DEF G2 Bd | cA F2 G2 |]  