class FMOD::Effects::Compressor
This unit implements dynamic compression (linked/unlinked multichannel, wide-band).
@attr threshold [Float] Threshold level (dB).
* *Minimum:* -80.0 * *Maximum:* 0.0 * *Default:* 0.0
@attr ratio [Float] Compression Ratio (dB/dB).
* *Minimum:* 1.0 * *Maximum:* 50.0 * *Default:* 2.5
@attr attack [Float] Attack time (milliseconds).
* *Minimum:* 0.1 * *Maximum:* 1000.0 * *Default:* 20.0
@attr release_time [Float] Release time (milliseconds).
* *Minimum:* 10.0 * *Maximum:* 5000.0 * *Default:* 100.0
@attr make_up_gain [Float] Make-up gain (dB) applied after limiting.
* *Minimum:* 0.0 * *Maximum:* 30.0 * *Default:* 0.0
@attr use_sidechain [Boolean] Whether to analyse the sidechain signal
instead of the input signal. * *Default:* +false+
@attr linked [Boolean]
* *true:* Linked * *false:* Independent (compressor per channel) * *Default:* +false+
Public Instance Methods
sidechain()
click to toggle source
# File lib/fmod/effects/compressor.rb, line 42 def sidechain get_data(5).to_s(SIZEOF_INT).unpack1('l') != 0 end
sidechain=(bool)
click to toggle source
# File lib/fmod/effects/compressor.rb, line 46 def sidechain=(bool) value = [bool.to_i].pack('l') set_data(5, value) end