Converts changes in signal level to messages.
This block is mainly intended to be used with the output of the Threshold block. It compares its input with a given threshold. Whenever the input crosses the threshold, a message is output saying if the signal is now over the threshold or below the threshold. If there are multiple threshold crossings inside a work() call, only the last one is considered, so at most there is an output message per work() call (i.e., the block only ever looks at the last input sample in each work() call).