We know that radiation is created from oscillating particle. Thus the oscillation frequency becomes the radiation frequency which determines its energy: E =hf. But for the case of quantum harmonic oscillator, we know that the energy is quantized: E = hw(n + 1/2). But because energies and frequency has to match, the quantized terms seems to be causing a discrepancy. So how could this be reconciled?