Module: Radio::Filter::Agc

Defined in:
lib/radio/filters/agc.rb

Defined Under Namespace

Modules: Float

Instance Method Summary collapse

Instance Method Details

#setupObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/radio/filters/agc.rb', line 21

def setup
  @gain = @options[:agc]
  if Numeric === @gain
    @gain = @gain.to_f
  else
    @gain = 20.0
  end
  @min = 0.0001
  @max = 0.0
  @attack = 0.05
  @decay = 0.01
  @reference = 0.05
  super
end