Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/2=80
M:4/4
K:G
['2 sharps in Bc d2 ge dBBd', 'G2 g2 g/a/b af d2 cBce dB'  
X:1
L:1/8
Q:1/2=80
M:4/4
K:G
 TB>A"_keysig 2 sharps in MS" Bc d2 ge | dBBd cAAc | TB>ABc d2 g2 | f/g/agf g2 G2 :: 
 g2 g/a/b af d2 | cBce dB G2 | egfa gedc | BAGF G2 G,2"^*" :|  