Absolute amplitude threshold gate detection
AmpGate is an absolute amplitude threshold gate detector. In this object, the term “gate” refers to a signal that reports whether or not there is the presence of sound above the provided amplitude threshold. The gate detects an onset (opens) when the internal envelope follower (controlled by
rampDown) goes above a specified
onThreshold (in dB) for at least
minLengthAbove samples. The gate will stay open until the envelope follower goes below
offThreshold (in dB) for at least
minLengthBelow samples, which triggers an offset.
minSilenceLength specify a duration of time (in samples) to ignore any state changes after an onset and offset (respectively).
onThreshold: The threshold (in dB) the envelope follower must go above to trigger an onset.
minLengthAbove: The length in samples that the envelope follower must be above
onThresholdto consider it a valid onset.
minSliceLength: The minimum length in samples for which the gate will stay open after an onset. Changes of states during this period after an onset will be ignored.
lookBack: When an onset is detected, the algorithm will look in the recent past (this length in samples) for the minimum in the envelope follower within this window to identify as the onset point.
offThreshold: The threshold (in dB) the envelope follower must go below to trigger an offset.
minLengthBelow: The length in samples that the envelope follower must be below
offThresholdto consider it a valid offset.
minSilenceLength: The minimum length in samples for which the gate will stay closed after an offset. Changes of states during that period after an offset will be ignored.
lookAhead: When an offset is detected, the algorithm will wait this duration (in samples) to find the minimum in the envelope follower within this window to identify as the offset point.
See the AmpGate help file for more parameters.
The other FluCoMa amplitude-based slicer, AmpSlice, is not based on an absolute threshold, but instead on a relative threshold. For onset detection based on an absolute amplitude threshold, use AmpGate and ignore the offset information.