Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
['A2 A2 d2 d2 efga f2 (ef)', 'edcd e3 f'  
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
 A2 A2 d2 d2 | efga f2 (ef) | g2 B2 c2 (de) | f2 e2{d} d4 :: edcd e3 f | edcd e3 f | g2 B2 c2 d2 | 
 edcB A2 fg | abag f2 ed | efga f2 ef | g2 B2 c2 (de) | f2 e2{d} d4 :|  