Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['FG A2', 'c8 B2 Bc dc B2 A6 FG'  
X:1
L:1/8
M:4/4
K:D
 F8 | G6 FG | A2 AB AF D2 | E6 FG | A2 d2 c4 | B2 BA FE D2 | E2 EF GF E2 |1 D4 ABAG :|2 D4 DFAc || 
 d8 | c8 | B2 Bc dc B2 | A6 FG | A2 d2 c4 | B2 BA FE D2 | E2 EF GF E2 |1 D4 DFAc :|2 D4 ABAG ||  