A theory of generalized Lamé curves — arXiv2