A heart stimulator provides for a more appropriate yet simple setting of the AV-delay. The heart stimulator comprises a stimulation pulse generator adapted to generate electric stimulation pulses and connected to a ventricular stimulation electrode for delivering electric stimulation pulses. A sensing stage connected to an electrode for picking up electric potentials inside a ventricle is adapted to sense an excitation or a contraction of a heart chamber. A memory is adapted to store parameters defining a Bezier function determining the relationship between AV-delay values and heart rate and a control unit connected to said memory, said sensing stage and to said stimulation pulse generator, is adapted to determine an actual AV-delay based on an actual intrinsic heart rate or an actual stimulation rate and a non-linear smoothing interpolation between said parameters stored in said memory.