Sine PWM Using TimerThree Library

Hello All,
I would make a inverter from Photovoltaic, but to produce the Sine PWM is bad. I use a reference sine wave to a voltage adder, and the output as input on Arduino, to Process the sine wave to be a sine PWM, I use library of TimerThree. Code is :

#include <TimerThree.h> 
float value;
float modulation_amplitude=0.9;

void setup()
{
  pinMode(3,OUTPUT);
  Timer3.initialize(1000);
}
void loop()
{
  //voltage adder output is in A0
  value=modulation_amplitude*(analogRead(A0));
  Timer3.pwm(3,value);
}

The Sine PWM is realy not good, I would like to control the output with change the modulation amplitude.
there is a way to make the sine PWM that can make without array input?
because if we use array input to make sine PWM , we can't change the wave sine PWM automatically.