Method: DTAS::RGState#to_sox_gain
- Defined in:
- lib/dtas/rg_state.rb
#to_sox_gain(val) ⇒ Object
69 70 71 72 73 74 75 76 77 |
# File 'lib/dtas/rg_state.rb', line 69 def to_sox_gain(val) case val.infinite? when -1 then return 'gain -192' when 1 then return 'gain 192' else val.abs <= 0.00000001 and return DTAS.dedupe_str(sprintf('gain %0.8f', val)) end end |