Sturm-Liouville operators, mixed spectral types, spectral function