Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:3/4
K:G
['d3 B']  
X:1
L:1/8
M:3/4
K:G
 D2 | B2 B3 c | cd d3 B | dccBce | d4 z G | B2 B3 c | ed d3 B | dccBcA | G4 G2 | A2 c3 A | 
 B2 d3 B | dccBce | d3 z D2 | B2 B3 c | ed d3 B | dccBcA | G4 g2 | d4 B2 | dccBcA | G4 |]  