The use of digital techniques for pulse width modulation conversion offers greater flexibility than traditional analogue methods. A technique is described that allows the PWM sampling process to be varied over a range of possibilities which offer different compromises between the type of distortion produced by natural and uniform sampling. With optimisation of a parameter, use of this process can lead to an overall reduction in distortion compared with conventional analogue techniques.