A glass-ceramic having at least two crystal phases, wherein at least one crystal phase has a positive temperature dependence of the resonance frequency τf, at least one crystal phase has a negative temperature dependence of the resonance frequency τf and the glass-ceramic has a resulting temperature dependence of the resonance frequency τf of 0+/−20 ppm/K, wherein the glass-ceramic contains at least one mixed crystal phase based on RE, Ti, Si, O, and Ba, where Ba can be at least partly replaced by Sr, Ca, and Mg, where RE is a lanthanide or yttrium and where Ti can be at least partly replaced by Zr, Hf, Y, Nb, V, Ta, Mn, and Cr.