Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:A
['', 'fg agaf ecAc defd e2', 'AB cBcA BAFD |1 ECEF A2'  
X:1
L:1/8
M:4/4
K:A
 fg |: agaf ecAc | defd e2 fg | abaf efed | cABc A2 fg | agaf ecAc | defd e2 e2 | cBAc BAFA |1 
 ECEF A2 fg :|2 ECEF A2 A2 |: c2 cA BcAB | cBcA E2 AB | cBcA BAFD |1 ECEF A2 AB :|  