A running average, power or RMS over a variable number of samples. For a running sum (not averaged) see MovingSum.
Output the average of numsamp audio or control rate samples.
in |
An input signal. |
numsamp |
Size of the time window, in samples. Modulatable between 1 and maxsamp. Default: 40. |
maxsamp |
Maximum size of the time window. Pre-allocates memory up to this size and your numsamp will be clipped at this value. maxsamp cannot be modulated. |
Output the time averaged power of the the signal. Implemented as the input squared, summed over the time window, averaged by the window size. The output rate is determined by the rate of the in signal.
Output the root mean square (RMS) of the the signal. Implemented as the input squared, summed over the time window, averaged by the window size, and square rooted. The output rate is determined by the rate of the in signal.