AudioEffectCompressor

    Adds a compressor audio effect to an audio bus.

    Reduces sounds that exceed a certain threshold level, smooths out the dynamics and increases the overall volume.

    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).

    • In the Master bus to compress the whole output (although an is probably better).
    • 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.
    • Accentuates transients by using a wider attack, making effects sound more punchy.
    Default20.0
    Setterset_attack_us(value)
    Getterget_attack_us()

    Compressor’s reaction time when the signal exceeds the threshold, in microseconds. Value can range from 20 to 2000.


    • gain

    Gain applied to the output signal.


    Default1.0
    Setterset_mix(value)
    Getterget_mix()

    Balance between original signal and effect signal. Value can range from 0 (totally dry) to 1 (totally wet).



    • release_ms
    Default250.0
    Setterset_release_ms(value)
    Getterget_release_ms()

    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.


    Reduce the sound level using another audio bus for threshold detection.


    • threshold
    Default0.0
    Setterset_threshold(value)
    Getterget_threshold()

    The level above which compression is applied to the audio. Value can range from -60 to 0.