Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/2
K:D
['d2 c2 d2 A2 B2 c2 d4', 'c2 d2'  
X:1
L:1/8
M:2/2
K:D
 d2 c2 d2 A2 | B2 c2 d4 | g2 f2 b2 a2 | gfed c4 | (df) (eg) (fd) (ge) | f2 g2 a4 | fd ec dB ac | 
 dBA^G A4 || d2 ^d2 ecBA | ceag (f2 f2) | babf gefg | fedc B4 | d2 c2 d2 A2 | Bagf f4 | 
 b2 B2 c2 d2 | egfe Tc4 | FAdf GBeg | Acfa Bdgb | gfga bceg | fedc d4 ||  