  We explain how to construct a quantum deformation of a spectral curve to a
tau-function of the KP hierarchy. This construction is applied to
Witten-Kontsevich tau-function to give a natural explanation of some earlier
work. We also apply it to higher Weil-Petersson volumes and Witten's r-spin
intersection numbers.
