Time-evolution of a harmonic oscillator: jumps between two frequencies