sine analog compare triangle signal to pwm

No Arduino can handle a -ve voltage on any of its pins.

int analogtri= 1+ analogRead(TriPin); // triangle OFFSET 1V

The above does NOT give an offset of 1V. Read up on analogRead().

Mark