Outputs 1 if previous sample was less than current, outputs -1 if previous sample was more than current, else outputs 0 - i.e. when no change.
Signal to track.
Language side.