Generalized coupling in the Kuramoto model