Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:12/8
K:D
['F2 D F2 A AFA B2 A', 'A2 B'  
X:1
L:1/8
M:12/8
K:D
 A | A2 A F2 D F2 A AFA | B2 A GFE DED DFG | ABA F2 D F2 A AFA | B2 A GFE DED D3 || 
 A2 B A2 F A2 B A2 F | A2 B A2 G F2 E F2 G | A2 B A2 F A2 B ABc | d2 A BAG FGE D2 ||  