Class: Wavify::DSP::Effects::MasteringChain

Inherits:
EffectChain
  • Object
show all
Defined in:
lib/wavify/dsp/effects/mastering_chain.rb,
sig/effects.rbs

Overview

Small mastering-oriented preset chain.

Instance Attribute Summary

Attributes inherited from EffectChain

#effects

Instance Method Summary collapse

Methods inherited from EffectChain

#apply, #build_runtime, #flush, #latency, #lookahead, #process, #reset, #tail_duration

Constructor Details

#initialize(highpass: 30.0, presence: 1.5, threshold: -18.0,, ratio: 2.0, ceiling: -1.0)) ⇒ MasteringChain

Returns a new instance of MasteringChain.

Parameters:

  • highpass (Numeric, nil) (defaults to: 30.0)
  • presence (Numeric, nil) (defaults to: 1.5)

    peaking EQ gain in dB

  • threshold (Numeric) (defaults to: -18.0,)

    compressor threshold in dBFS

  • ratio (Numeric) (defaults to: 2.0)

    compressor ratio

  • ceiling (Numeric) (defaults to: -1.0))

    limiter ceiling in dBFS

  • highpass: (Numeric) (defaults to: 30.0)
  • presence: (Numeric) (defaults to: 1.5)
  • threshold: (Numeric) (defaults to: -18.0,)
  • ratio: (Numeric) (defaults to: 2.0)
  • ceiling: (Numeric) (defaults to: -1.0))


13
14
15
16
17
18
19
# File 'lib/wavify/dsp/effects/mastering_chain.rb', line 13

def initialize(highpass: 30.0, presence: 1.5, threshold: -18.0, ratio: 2.0, ceiling: -1.0)
  super([
    EQ.simple(highpass: highpass, presence: presence_filter(presence)),
    Compressor.new(threshold: threshold, ratio: ratio, attack: 0.005, release: 0.08, makeup_gain: 1.5, knee: 6.0),
    Limiter.new(ceiling: ceiling)
  ])
end