class SynthBlocks::Fx::Limiter

Simple soft limiter Taken from github.com/pichenettes/stmlib/blob/448babb082dfe7b0a1ffbf0b349eefde64691b49/dsp/dsp.h#L97

Public Instance Methods

run(x) click to toggle source

run limiter

# File lib/synth_blocks/fx/limiter.rb, line 10
def run(x)
  x * (27.0 + x * x) / (27.0 + 9.0 * x * x)
end