Skip to content

Class · inherits Instance

AudioGate

Official docs ↗

Mutes audio streams that fall below a certain volume threshold.

About AudioGate

AudioGate behaves like a noise gate, muting audio streams when their volume drops below a specified Threshold. It is useful for removing background noise from microphone input or cleaning up audio tracks. It provides one Input pin and one Output pin which can be connected to/from by Wires.

Properties 4

  • Attack: floatControls how long it takes for the gate to open when the signal level rises above the Threshold.

    The duration, in seconds, over which the gate will unmute the audio stream when the signal level rises above the Threshold. Ranges from 0.001 to 5.

  • Bypass: booleanWhether audio streams are passed-through unaffected by this effect.

    If true, audio streams are passed-through unaffected by this effect.

  • Release: floatControls how long it takes for the gate to close when the signal level drops below the Threshold.

    The duration, in seconds, over which the gate will mute the audio stream when the signal level drops below the Threshold. Ranges from 0.001 to 5.

  • Threshold: NumberRangeThe gain value(s) around which the gate opens and closes.

    The gain value(s), in decibels, at which the gate will transition from being closed (i.e. muted) to being open (i.e. unmuted).

    AudioGate.Threshold is a NumberRange with a "low" and a "high" threshold. The gate starts out muted - when the input stream's volume rises above the "high" threshold, the gate will unmute the audio stream over the course of Attack seconds. If the input stream's volume then dips below the "low" threshold, the gate will mute the audio stream over the course of Release seconds. The two "low" and "high" thresholds create a hysteresis region to prevent the gate from opening and closing very rapidly.

    Ranges from -80 to 30, and defaults to -36 (low) and -24 (high).

Methods 3

Events 1

  • WiringChangedAudioGate.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from the AudioGate via a Wire.

    Event that fires after a Wire becomes connected or disconnected, and that Wire is now or was previously connected to a pin on the AudioGate and to some other wirable instance.

AudioGate also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.