Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/2
K:D
['AF (3ABc', 'ceef abaf{a} gefd (3gfe (3dcB Addf abag'  
X:1
L:1/8
M:2/2
K:D
 B | AF (3ABc dc (3def |{f} edef edBd | AF (3ABc Bdgb |1 af{a}ge fdBd :|2 agec edd || f | 
 abaf{a} gefd | (3gfe (3fed ceef | abaf{a} gefd | (3gfe (3dcB Addf | abag fedf | (3efg (3fed ceef | 
 dA (3FGA Bdfb | afec ed d |]  