Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['A2 AB'  
X:1
L:1/8
M:4/4
K:D
"D" A2 AB AFED |"G" B2 BA BcdB |"D" A2 AB A2 z f |"G" gfed"A" BcdB |"D" A2 AB AFED | 
"G" B2 BA BcdB |"D" A2 AB A2 z f |"G" gfed"A" Bcde :|"D" f2 fd"G" g2 ge |"D" f2 fd"G" Bcde | 
"D" f2 fd"G" g2 ge |"D" afed"G" Bcde |"D" f2 fd"G" g2 ge |"D" f2 fd"G" Bcde |"D" defg afba | 
"G" gfed"A" BcdB :|  