Class · inherits Instance
AudioCompressor
Adjusts the dynamic range of input streams.
About AudioCompressor
AudioCompressor adjusts the dynamic range of audio streams. Any
momentary bursts of loudness will be clamped down according to the
compressor's properties.
AudioCompressor provides Input and Sidechain pins that can be
targeted by Wire.TargetName, and an Output pin that can be used by
Wire.SourceName.
Properties 6
Bypass
: booleanWhether audio streams are passed-through unaffected by this effect.If
true, audio streams are passed-through unaffected by this effect.MakeupGain
: floatA gain value to be applied after compression.Gain value to be applied after compression, in decibels. After limiting the dynamic range, the resulting stream may be very quiet and this property can be used to compensate. Ranges from -30 to 30.
Ratio
: floatRatio of input volume to output volume, to be applied when surpassingThreshold.Ratio of input volume to output volume, to be applied when surpassing
Threshold. For example, a value of 2 will cut the amount by which the input stream exceeds the threshold in half whenever the input stream does so. Ranges from 1 to 50.Threshold
: floatGain value at which the compressor will start to modify the input stream.Gain value at which the compressor will start to modify the input stream, in decibels, with a range of -60 to 0. When the input stream's volume surpasses
Threshold, the compressor will takeAttackseconds to kick in. When the input stream's volume recedes belowThreshold, the compressor will takeReleaseseconds to stop acting.If any
Wiresare connected to the Sidechain pin of the compressor, this threshold analyzes those streams instead of the Input streams; this can be used to duck the volume of one stream in response to another.
Methods 3
GetConnectedWires
(pin: string) → List<Wire>Returns an array ofWiresthat are connected to the specified pin.Returns an array of
Wiresthat are connected to the specified pin.AudioCompressorhas one "Input" pin, one "Sidechain" pin, and one "Output" pin.GetInputPins
() → ArrayGets the list of pins thatWirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.Gets the list of pins that
Wirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.For
AudioCompressor, these are:InputSidechain
GetOutputPins
() → ArrayGets the list of pins thatWirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.Gets the list of pins that
Wirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.For
AudioCompressor, this isOutputonly.
Events 1
WiringChanged
AudioCompressor.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioCompressorvia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioCompressorand to some other wirable instance.
AudioCompressor 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.