Magnetic oscillators