Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['ABdf e2', 'a2 fa bafb'  
X:1
L:1/8
M:4/4
K:D
|: ABdf e2 dB | AF F2 EFDB | ABdf e2 df |1 afef dedB :|2 afef d3 f || a2 fa bafb | a2 fd edBd | 
 a2 fa bafb | afef d3 f | a2 fa bafb | a2 fd edBd | A2 FB ABdf | afef d3 B ||  