For a Hilbert space $L^2$ we have the notion of an orthonormal basis $\{f_j\}$ being a sequence of orthonormal elements such that any element $f$ in $L^2$ can be approximated by partial sums in terms of this basis $$f = \sum_{j=1}^\infty \langle f, f_j \rangle f_j$$ Here the sum converges wrt the $L^2$ norm. This is what I mean by generalized Fourier series.
I have been reading about Carleson's Theorem that says specifically for Fourier series, the series converges pointwise almost everywhere to the approximated function. I have also read that this is not true for a general orthonormal basis. I was hoping someone would be able to provide me with an example demonstrating that statement on a finite measure space, maybe $L^2([0,1])$: A function whose partial sums in terms of the basis do not convergence pointwise almost everywhere.