I know that if a function $f(x_1, x_2,\ldots)$ is periodic along a certain coordinate $x_k$: $$f(\ldots, x_k,\ldots) = f(\ldots, x_k + L_k,\ldots)\quad,$$ it leads to the discrete Fourier series along this coordinate, and so, to the discrete spectrum.
Now, what are the consequences of the function being an angle-like itself? $$f(x_1,x_2,\ldots) \sim f(x_1,x_2,\ldots)+2\pi R$$ Or, better say: $$f:\: \mathbb{R}^m \times S^n \to S^1$$
(meaning that $n$ coordinates are periodic, while $m$ are not)
A more general question — what if the function takes values in a compact space? (In Physics, we are normally interested in an even more particular case — when such a space is a manifold of a compact Lie group.)