Improved sine generator