Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/4
K:G
['BBdd c2 A2 GABc A2 z2 ccBB']  
X:1
L:1/8
M:2/4
K:G
 BBdd | c2 A2 | GABc | A2 z2 | ccBB | e2 d2 | dcBA | G2 z2 |]  