SPKitLimiter


User's Guide

SPKitLimiter is a limiter class. It scales the amplitude of the input signal to match a maximum output level indicated by a threshold value. SPKitLimiter compares the input signal amplitude with the threshold level and scales down the amplitude, if input signal level exceeds the threshold.

SPKitLimiter inherits a setInputAndEstimationTime() initialization function and a setThreshold() function from its base class, SPKitDynamicsProcessor.


Programmer's Reference

Defined in <spkit/limiter.h>
Inherits from SPKitDynamicsProcessor

SPKitLimiter implements a scaleBuffer() function for scaling the amplitude of the input signal.

Protected Members

void scaleBuffer()
scale the amplitude of sampleBuffer to match the threshold level.

SPKitLimiter uses linear interpolation to scale the amplitude between two consecutive time windows. If the absolute maximum amplitude values of both windows are less than threshold, scaleBuffer() leaves the sampleBuffer unaffected.


Return to SPKit home

Kai Lassfolk / University of Helsinki / kpl@elisir.helsinki.fi