Magnetic sensor for continuous recording