squarewave