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.
Initial sample value.
Language side.
Get or set previous sample value.