Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:G
['ug>uf ve>vg (3fe^d e z E>F G>AB>c', "G2 ub>ua g>be>b g>be>b f>ad>a f>ad'>a f>ad>a"  
X:1
L:1/8
M:4/4
K:G
 ug>uf | ve>vg (3fe^d e z E>F | G>AB>c d2 D2 | E>GB>^d e>de>f | (3gfe f>^d e>de>f | g>fg>f edBd | 
 g>ed>B c2 c2 | (3BdB G>B (3AcA F>A | G2 g2 G2 :| ub>ua | g>be>b g>be>b | f>ad>a f>ad'>a | 
 f>ad>a f>ad>a | g>ab>a g>fe>f | g>bf>b e>bf>b | gbfb e>bf>b | g>bg>b f>bf>b | (3gfe f>^d e>de>f | 
 g>fg>f edBd | g>ed>B c2 c2 | (3BdB G>B (3AcA F>A | G2 g2 G2 |]  