audio

@audio/dynamics-varimu0.3.0

Vari-Mu compressor model

Vari-Mu compressor model — feedback detection, drive-dependent ratio, soft wide knee (Fairchild class)

Status
pending calibration
Updated
Family
dynamics, 17 packages under it
Plugin
varimu, effect, streaming, 5 parameters
Category
effects
Licence
MIT
Dependencies
2 packages, all permissive: MIT
Downloads
3,356 last month
Tests
92 in audiojs/dynamics's CI, passed at 2ee3ad9,

Listen

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
audio('/samples/music/modern/local-forecast.mp3').varimu()

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html

Parameters

  • effect
  • streaming
threshold
−22 dB
−60 to 0 dB
knee
15 dB
6 to 30 dB
attack
25 ms
5 to 200 ms
release
400 ms
50 to 2000 ms
makeup
0 dB
−12 to 24 dB

Vari-Mu compressor model (Fairchild class) — feedback detection, drive-dependent ratio, soft wide knee

import varimu from '@audio/dynamics-varimu'

Models a Fairchild 670-style vari-mu tube compressor: feedback topology — the RMS detector reads the already-compressed output, not the input, which is what gives vari-mu units their characteristic self-limiting smoothness. Ratio ("mu") is not fixed: it grows from 1.8 with drive above threshold (mu = 1.8 + max(0, overDb) / 5), through a 15 dB soft knee.

varimu(data, { threshold: -22 })                 // batch
varimu(data)                                        // defaults

let write = varimu({ threshold: -22 })            // streaming
let out1 = write(block1)
let tail = write()                                  // flush
Param Default
threshold -22 dB
knee 15 dB (wide)
attack 25 ms
release 400 ms
makeup 0 dB
sampleRate 44100 Hz (alias fs)

Ratio is derived, not settable — pass threshold/knee to shape where and how gradually it grows.

Use when: bus glue, mastering — slow, smooth, self-limiting gain reduction with tube-like character.
Not for: fast peak control — use fet or limiter.


Part of @audio/dynamics — the dynamics family umbrella.

MIT © audiojs