A UGen that reports a percentile of a sliding window across its input.
The UGen starts outputting values immediately, even if the median window len
is not yet reached. This is because len
can be modulated.
If one wants to discard the initial values, use a drop
.
Note that for an even median length and no interpolation, the reported median
may be either the value at index len/2
or len/2 + 1
in the sorted window.
All arguments are polled at the same rate. Changing the frac
value
may cause an internal table rebuild and can thus be expensive.
- Value parameters:
- frac
the percentile from zero to one. The default of 0.5 produces the median.
- in
the input to analyze
- interp
if zero (default), uses nearest-rank, otherwise uses linear interpolation. '''Note:''' currently not implemented, must be zero
- len
the length of the sliding median window
- Companion:
- object