An AC-AC power convertor for converting a first AC voltage from a single-phase power source providing sinusoidal input voltage v G having have a frequency f G to a second AC voltage, comprising: a PFC rectifier circuit for rectifying the first AC voltage to generate a DC link voltage (vDC); an inverter for generating the second AC voltage from the DC link voltage (vDC) and for supplying the second AC voltage to a motor; a DC link including a DC link capacitor in between the PFC rectifier circuit and the inverter; and a controller for controlling the PFC rectifier circuit and the inverter, characterised in that the controller comprises a speed controller configured to obtain a target average inverter output (<pINV>*) based on the difference between a target average motor speed (<w>*) and a current average motor speed (<w>), and the controller is configured to obtain a target capacitor power (pC*) for the DC link capacitor based on a difference between a target DC link voltage (vDC*) and a current value of the DC link voltage (vDC), to generate from the target capacitor power (pC*) a target average capacitor power (<Pc>*), to add the target average inverter output (<pINV>*) to the target average capacitor power (<Pc>*) to thereby yield a target average rectified power (<pPFC>*) for the control of the PFC rectifier circuit, to let the PFC rectifier circuit controller calculate a target input current i G * based on the target average rectified power (<pPFC>*), to obtain a target motor power (pM*) by subtracting the target capacitor power (pC*) from a target rectified power (pPFC*), wherein the target rectified power (pPFC*) is based on the product of the input voltage v G and an input current i G, which both have a sinusoidal wave shape with frequency f G, and to control the inverter on the basis of the target motor power (pM*) such that the motor power is equal to the input power of the PFC rectifier circuit and pulsations in the DC link voltage (vDC) become zero. a PFC rectifier circuit for rectifying the first AC voltage to generate a DC link voltage (vDC); an inverter for generating the second AC voltage from the DC link voltage (vDC) and for supplying the second AC voltage to a motor; a DC link including a DC link capacitor in between the PFC rectifier circuit and the inverter; and a controller for controlling the PFC rectifier circuit and the inverter, characterised in that the controller comprises a speed controller configured to obtain a target average inverter output (<pINV>*) based on the difference between a target average motor speed (<w>*) and a current average motor speed (<w>), and the controller is configured to obtain a target capacitor power (pC*) for the DC link capacitor based on a difference between a target DC link voltage (vDC*) and a current value of the DC link voltage (vDC), to generate from the target capacitor power (pC*) a target average capacitor power (<Pc>*), to add the target average inverter output (<pINV>*) to the target average capacitor power (<Pc>*) to thereby yield a target average rectified power (<pPFC>*) for the control of the PFC rectifier circuit, to let the PFC rectifier circuit controller calculate a target input current i G * based on the target average rectified power (<pPFC>*), to obtain a target motor power (pM*) by subtracting the target capacitor power (pC*) from a target rectified power (pPFC*), wherein the target rectified power (pPFC*) is based on the product of the input voltage v G and an input current i G, which both have a sinusoidal wave shape with frequency f G, and to control the inverter on the basis of the target motor power (pM*) such that the motor power is equal to the input power of the PFC rectifier circuit and pulsations in the DC link voltage (vDC) become zero.