2d oscillator in software