Roblox UtilitiesDevlHub Roblox Documentation

Class

AudioTremolo

Inherits
Instance › Object
Memory category
Internal

Creates a trembling effect on a sound by varying the volume of the sound up and down.

AudioTremolo creates a trembling effect on a sound by varying the volume of the sound up and down. It provides one Input pin and one Output pin which can be connected to/from by Wires.

Properties 7#

BypassbooleanWhether audio streams are passed-through unaffected by this effect.ReadSafe
DepthfloatControls how much the volume will raise and lower.ReadSafe
DutyfloatControls how long the effect will be active during one volume oscillation.ReadSafe
FrequencyfloatSets how often the effect will oscillate the volume.ReadSafe
ShapefloatControls the shape of the low frequency oscillations.ReadSafe
SkewfloatTime-skews the low frequency oscillations cycle.ReadSafe
SquarefloatFlatness of the low frequency oscillations shape.ReadSafe

Bypass: boolean#

ReadSafe

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

Depth: float#

ReadSafe

Controls how much the volume will raise and lower, ranging between 0 and 1 with a default of 1. If set to 0, the volume will not oscillate at all.

Duty: float#

ReadSafe

Controls how long the effect will be active during one volume oscillation in the range of 0 (0%) to 1 (100%). Default is 0.5.

Frequency: float#

ReadSafe

Sets how often the effect will oscillate the volume, measured in Hz, in the range of 0.1 to 20. Default is 5.

Shape: float#

ReadSafe

Morphs the LFO (low frequency oscillation) shape in a range of 0 to 1 where 0 is triangle and 1 is sine. Default is 0.

Skew: float#

ReadSafe

Controls the time-skewing of the LFO (low frequency oscillation) cycle in the range of -1 to 1. No skewing occurs at 0, with more extremal forwards and backwards skewing towards +1/-1. Default is 0.

Square: float#

ReadSafe

Determines the squareness of the oscillations in the range of 0 to 1. The original shape is retained when 0 and the shape flattens more as the value increases. Default is 0.

Methods 3#

GetConnectedWiresReturns an array of Wires that are connected to the specified pin.
GetInputPinsGets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.
GetOutputPinsGets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

GetConnectedWires(pin: string): List<Wire>#

Returns an array of Wires that are connected to the specified pin. AudioTremolo has one "Input" pin and one "Output" pin.

NameTypeDefaultDescription
pinstringAn input or output pin on this instance
Returns
  • List<Wire> — An array of Wires

GetInputPins(): Array#

Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.

For AudioTremolo, this is Input only.

Returns
  • Array — An array of strings representing valid pin names.

GetOutputPins(): Array#

Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.

For AudioTremolo, this is Output only.

Returns
  • Array — An array of strings representing valid pin names.

Events 1#

WiringChangedFires when another instance is connected to or disconnected from the AudioTremolo via a Wire.

WiringChanged(connected: boolean, pin: string, wire: Wire, instance: Instance)#

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

NameTypeDefaultDescription
connectedbooleanWhether the instance got connected or disconnected.
pinstringThe pin on the AudioTremolo that the Wire targets.
wireWireThe Wire between the AudioTremolo and the other instance.
instanceInstanceThe other instance that is or was connected through the Wire.

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed