2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 14:18:53 +01:00
<class name= "AudioEffectCompressor" inherits= "AudioEffect" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 22:42:36 +02:00
<brief_description >
2019-06-22 01:04:47 +02:00
Adds a compressor audio effect to an audio bus.
2017-09-16 18:47:19 +02:00
Reduces sounds that exceed a certain threshold level, smooths out the dynamics and increases the overall volume.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-09-16 18:47:19 +02:00
Dynamic range compressor reduces the level of the sound when the amplitude goes over a certain threshold in Decibels. One of the main uses of a compressor is to increase the dynamic range by clipping as little as possible (when sound goes over 0dB).
Compressor has many uses in the mix:
2019-06-22 01:04:47 +02:00
- In the Master bus to compress the whole output (although an [AudioEffectLimiter] is probably better).
2017-09-16 18:47:19 +02:00
- In voice channels to ensure they sound as balanced as possible.
2019-06-22 01:04:47 +02:00
- Sidechained. This can reduce the sound level sidechained with another audio bus for threshold detection. This technique is common in video game mixing to the level of music and SFX while voices are being heard.
2017-09-16 18:47:19 +02:00
- Accentuates transients by using a wider attack, making effects sound more punchy.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
2022-06-20 01:11:11 +02:00
<link title= "Audio buses" > $DOCS_URL/tutorials/audio/audio_buses.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<members >
2019-06-29 12:38:01 +02:00
<member name= "attack_us" type= "float" setter= "set_attack_us" getter= "get_attack_us" default= "20.0" >
2019-06-29 15:24:23 +02:00
Compressor's reaction time when the signal exceeds the threshold, in microseconds. Value can range from 20 to 2000.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "gain" type= "float" setter= "set_gain" getter= "get_gain" default= "0.0" >
2017-09-16 18:47:19 +02:00
Gain applied to the output signal.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "mix" type= "float" setter= "set_mix" getter= "get_mix" default= "1.0" >
2019-06-29 15:24:23 +02:00
Balance between original signal and effect signal. Value can range from 0 (totally dry) to 1 (totally wet).
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "ratio" type= "float" setter= "set_ratio" getter= "get_ratio" default= "4.0" >
2019-06-29 15:24:23 +02:00
Amount of compression applied to the audio once it passes the threshold level. The higher the ratio, the more the loud parts of the audio will be compressed. Value can range from 1 to 48.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "release_ms" type= "float" setter= "set_release_ms" getter= "get_release_ms" default= "250.0" >
2019-06-29 15:24:23 +02:00
Compressor's delay time to stop reducing the signal after the signal level falls below the threshold, in milliseconds. Value can range from 20 to 2000.
2017-09-12 22:42:36 +02:00
</member>
2021-06-05 21:24:24 +02:00
<member name= "sidechain" type= "StringName" setter= "set_sidechain" getter= "get_sidechain" default= "&""" >
2017-09-16 18:47:19 +02:00
Reduce the sound level using another audio bus for threshold detection.
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "threshold" type= "float" setter= "set_threshold" getter= "get_threshold" default= "0.0" >
2019-06-29 15:24:23 +02:00
The level above which compression is applied to the audio. Value can range from -60 to 0.
2017-09-12 22:42:36 +02:00
</member>
</members>
</class>