Koszul complexes, harmonic oscillators, and the Todd class