Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:Gmin
['(DG{A}G^F G2) (GA)', 'dg^fa g2 (ga)'  
X:1
L:1/8
M:2/2
K:Gmin
 (G^F) | (DG{A}G^F G2) (GA) | =BGdG =EGdG | (D=F{G}F=E F2) (FG) | AFcF dFcF | (DG{A}G^F G2) (GA) | 
 BAGA Bcd=e | f=efd cBAc | (BAB)A G z || d | dg^fa g2 (ga) | =bgag bgag | (d^c)d=e (=fe)fg | 
 ag^fg agfg | dg^fa g2 (ga) | _bag^f gdd=e | fefd cBAc |{c} (BAB)A G2 ||  