Automorphic forms and quasihomogeneous singularities