Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['', '(3ABA GF G2', 'bgea gedg'  
X:1
L:1/8
M:4/4
K:G
 (3def |: g2 dg edBG | (3ABA GB AGED | G,A,B,D EDB,A, | (3G,A,B, DE GABG | ABdB gdga | bgea gede | 
 gedg edBG |1 (3ABA GF G2 ef :|2 (3ABA GF G2 A2 |: B2 GB dGBd | gdga bgea | gedg edBd | 
 (3ege dB ABGA | BAGB dGBd | gdga bgea | gedg edBG |1 (3ABA GF G2 A2 :|2 (3ABA GF G2 ||  