.TH SIGNUM 1carl CARL
.SH NAME
signum - derive sign of floatsam stream
.SH SYNOPSIS
.B signum 
[
.B median 
[
.B gain
]
] 
< 
floatsams 
> 
floatsams
.SH DESCRIPTION
.B signum 
reads floatsams (32-bit binary floating point samples) on its
standard input and extracts the sign of each sample.
By default, the value of 
.B median
is 0, and
.B gain
is 1.
The input signal is first scaled by the value of
.B gain  
then, if the resulting sample is greater than 
.B median,
the output is 1.0; if the input sample is equal to
.B median,
the output is 0; if the input sample is less than 
.B median,
the output is -1.0.
