Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:Amix
['e2 ef gfgf', 'A2 A=c BA [GB]2 AGAd B2 d2'  
X:1
L:1/8
M:4/4
K:Amix
 e2 ef gfgf | ece^g a2 a2 | e2 ef gfgf | ed B2 (A2 A2) :| A2 A=c BA [GB]2 | AGAd B2 d2 | 
 edef g/a/g/f/ e2 | edBA G2 E2 | A2 A=c BA [GB]2 | AGAd B2 d2 | edef g/a/g/f/ e2 | ed B2 (A2 A2) ||  