SPKitGate inherits a setInputAndEstimationTime() initialization function and a setThreshold() function from its base class, SPKitDynamicsProcessor.
SPKitGate implements a scaleBuffer() function for scaling the amplitude of the input signal.
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.
Kai Lassfolk / University of Helsinki / kpl@elisir.helsinki.fi