Class: SynthBlocks::Fx::Limiter
- Inherits:
-
Object
- Object
- SynthBlocks::Fx::Limiter
- Defined in:
- lib/synth_blocks/fx/limiter.rb
Overview
Simple soft limiter Taken from github.com/pichenettes/stmlib/blob/448babb082dfe7b0a1ffbf0b349eefde64691b49/dsp/dsp.h#L97
Instance Method Summary collapse
-
#run(x) ⇒ Object
run limiter.
Instance Method Details
#run(x) ⇒ Object
run limiter
10 11 12 |
# File 'lib/synth_blocks/fx/limiter.rb', line 10 def run(x) x * (27.0 + x * x) / (27.0 + 9.0 * x * x) end |