Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:3/8=100
M:6/8
K:G
['BGB dcB', '(e/f/) gdB', 'a f2 a', 'd/e/f/g/ aa'  
X:1
L:1/8
Q:3/8=100
M:6/8
K:G
 d/c/ | BGB dcB | AFA cBA | BGB dcB | gfe d2 c | BGB dcB AFA ABc | dcB cBA | G3 G,2 :: (e/f/) | 
 gdB gdB | g>ag f>ef | gdB gdB | aga A2 (e/f/) | gdB ecA | dBG F>ED | E/F/GE F/G/AF | G3"^*" G,2 :| 
[M:2/4][K:D][Q:1/4=100] d2 e2 | f d2 e | f2 g2 | a f2 a | a f2 a | g e2 g | fdgf |{f} e4 :: fdfa | 
 eceg | fdgf |{f} e4 | d/e/f/g/ aa | d/e/f/g/ aa | bgfe | d4 |]  