Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:4/4
K:A
['', 'A2 c2', 'a>gf>e G>AB>c d>EF>G A>EA>c d>cB>A G>AB>G E2', 'b>ag>f e>ac>f e>dB>G A2 c2'  
X:1
L:1/8
M:4/4
K:A
 E2 |: A2 c>A E>Ac>A | G>AB>G A2 c2 |1,3 d>fe>c d>cB>A | G>AB>G E>gd>B :|2,4 d>ge>d c>AB>G | 
 A2 c2 A2 :: c>d | e>Ac>e a>gf>e | G>AB>c d>EF>G | A>EA>c d>cB>A | G>AB>G E2 c>d || e>Ac>e a>gf>e | 
 f>Bd>f b>ag>f | e>ac>f e>dB>G | A2 c2 A2 :|  