Design tunes that follow the specified musical pattern while integrating the presented motif
X:1
L:1/8
M:2/4
K:G
['d2 (3BAG(3AGF G2 z A BdcB AGFE']  
X:1
L:1/8
M:2/4
K:G
 d2 | (3BAG(3AGF | G2 z A | BdcB | AGFE | DEDC | B,4 | A>AAAAB | c4 z2 B>BBBBc | d4 z2 A2 A>AAA | 
 B4 z2 d2 A>AAA | B4 |]  