SPKitGate


User's Guide

SPKitGate is a signal gate. It compares the input signal amplitude with the threshold level and scales the amplitude down to zero, if the input signal level is lower the threshold.

SPKitGate 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

SPKitGate 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.

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


Return to SPKit home

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