in a device for encoding and recording digital signals on a magnetic recording medium , precompensation in respect of errors which arise with high bit packing densities is effected by selectively advancing and delaying the signals . the delay or advance is obtained by presetting a counter according to the value of following and preceding signals .