Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:A
['d2 cA (3AAA BA F2- FEFG', 'e2 f2 dc de f2- fefg a2'  
X:1
L:1/8
M:4/4
K:A
 d2 | cA (3AAA BA F2- | FEFG AGAB | cd B4 d2 | cA (3AAA BA F2- | FEFG AGAc | BG A4 :: e2 | 
 f2 dc de f2- | fefg a2 AB | Bc c2- cdBd | c2 FE FG A2- | ABcd (3efe dc | dc B4 e2 | f2 dc de f2- | 
 fefg a2 ga | ba e2- efed | cA (3AAA BA F2- | FEFG AGAc | BG A4 :|  