add triangular wave