Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['D2 FA fdAF EFGB e3 d cA', 'FBBA B3 c dBB^A B3'  
X:1
L:1/8
M:4/4
K:D
 D2 FA fdAF | EFGB e3 d | cA A2 (3Bcd ed | cAGE DEFE | D2 FA fdAF | EFGB e3 d | cA A2 (3Bcd ed | 
 cAGE D4 :| FBBA B3 c | dBB^A B3 d | cA A2 ^GA A2 | Acec dcBA | FBBA B3 c | dBB^A B3 e | 
 edcd fedc | BAGF EDCE :|  