Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:G
['D |]:', 'Bd c/B/A/G/', 'AG/A/ BA Ad e/f/g/e/ dB/d/ c/B/AG/ B/c/A/B/'  
X:1
L:1/8
M:2/4
K:G
 D |]: G>A Bd | c/B/A/G/ B/A/G/A/ | BA AG/A/ | BA AD | G/F/G/A/ Bd | c/B/A/G/ Bc/A/B/ | GE ED/E/ |1 
 GE ED :|2 GE Ed |: eg dB | c/B/A/G/ B/A/G/A/ | BA AG/A/ | BA Ad | e/f/g/e/ dB/d/ | 
 c/B/AG/ B/c/A/B/ | GE ED/E/ |1 GE Ed :|2 GE ED | |]  