BASS_BFX_COMPRESSOR2

BASS FX

BASS_BFX_COMPRESSOR2 structure

Used with BASS_FXGetParameters and BASS_FXSetParameters to retrieve and set the parameters of a compressor effect.

typedef struct {
    float fGain;
    float fThreshold;
    float fRatio;
    float fAttack;
    float fRelease;
    int lChannel;
} BASS_BFX_COMPRESSOR2;

Members

fGain Output gain of signal after compression. The default value is 0 dB [-60.....+60] dB
fThreshold Point at which compression begins. The default value is -15 dB [-60.......0] dB
fRatio Compression ratio. The default value is 3, which means 3:1 compression [1.........n]
fAttack Time before compression reaches its full value. The default value is 10 ms [0.01...1000] ms
fRelease Speed at which compression is stopped after input drops below fThreshold. The default value is 200 ms [0.01...5000] ms
lChannel The affected channels using BASS_BFX_CHANxxx flags   

Info
Compressors are commonly used in recording to control the level, by making loud passages quieter, and quiet passages louder. This is useful in allowing a vocalist to sing quiet and loud for different emphasis, and always be heard clearly in the mix. Compression is generally applied to guitar to give clean sustain, where the start of a note is "squashed" with the gain automatically increased as the not fades away. Compressors take a short time to react to a picked note, and it can be difficult to find settings that react quickly enough to the volume change without killing the natural attack sound of your guitar.

See also
BASS_ChannelSetFX