Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/4=120
M:2/2
K:D
['d2 d>d d2', 'e>f g2 g>g g2 (d>e) f2 f>f'  
X:1
L:1/8
Q:1/4=120
M:2/2
K:D
 A(B/c/) | d2 d>d d2 (f>d) | ([fd][ec]).[ec].[ec] [ec]2 (fg) | [fd]2 [fd]>[fd] [fd](agf) | 
 (e/f/e/d/ c/d/c/B/) (A/B/A/G/ F/G/F/E/) |!f! (DFA)(g!p! fdAF) |!f! (EGB)!p!(a gecA) | 
!f! (a>f)a>f g>ed>c | d2 d>d d2 :: f>g | a2 a>a a2 e>f | g2 g>g g2 (d>e) | f2 f>f fagf | 
 (e/f/e/d/ c/d/c/B/) (A/B/A/G/ F/G/F/E/) |!f! (DFA)!p!(g fdAF) |!f! (EGB)(a gecA) | 
 (a>f)(a>f) g>edc | d2 d>d d2"^rpt added" :|  