Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/4
M:2/2
K:D
['G2 B3/2 c/ d2 B2 c2 A2', 'G G B A G'  
X:1
L:1/4
M:2/2
K:D
 G2 B3/2 c/ | d2 B2 | c2 A2 | d2 A2 || B G G B | A G G B | A G F E | F2 D2 ||  