Fix the sawtooth signal generator again. More or less.