ferraus gate
Noise gate with hysteresis and hold
Synopsis
ferraus gate <input> [options] [-o <output>]
What it does
Mutes the signal while it stays below the threshold. The gate opens at the threshold and closes 3 dB lower (hysteresis) after the hold time, so it does not chatter.
This command is also an fx stage and a pipeline op: ferraus fx in.wav -o out.wav --fx "gate:key=value".
Examples
Gate a tom mic
ferraus gate tom.wav --threshold -35dB -o tom_gated.wav
Gentle gate that only dips the background
ferraus gate vo.wav --range -12dB --release 200ms -o vo_soft.wav
Short, tight gate that cuts the spill between kick hits
ferraus gate kick.wav --threshold -30dB --hold 20ms --release 50ms -o kick_tight.wav
High-pass the detector so kick bleed does not open the gate, only snare hits do
ferraus gate snare.wav --threshold -28dB --sidechain-hpf 200Hz -o snare_gated.wav
Options
| Flag | Type | Default | Meaning |
|---|---|---|---|
--threshold | gain | -40dB | Opening level (closes 3 dB lower) |
--attack | time | 1ms | Opening time |
--hold | time | 50ms | Minimum open time after the level drops |
--release | time | 100ms | Closing time |
--range | gain | -80dB | Attenuation when closed |
--sidechain-hpf | frequency | 0Hz | High-pass on the detector (0Hz = off) |
--mix | percent | 100% | Dry/wet balance: 0% returns the input unchanged, 100% is fully processed |
Global options
Every command also accepts the global options (-o, --json, --dry-run, --overwrite, --progress, ...). See Global options.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Processing failed |
| 2 | Usage or parameter error |
| 3 | Input missing or unreadable |
| 4 | Unsupported format or codec |
| 8 | Cancelled |
| 70 | Internal error (bug) |
Common mistakes
- Forgetting that outputs are never overwritten: pass
--overwriteor a new-opath when re-running. - Beat-based times (
4b,1/4) need a tempo: pass--bpmor write4b@120. - Gains need a unit when not in dB:
0.5xis a factor,-6and-6dBare decibels.
For models
- MCP tool:
ferraus_gate - Schema:
ferraus schema gate - Pipeline:
{ op: gate, args: { ... } }(flag names with_instead of-) - fx stage: yes
{"command": "gate", "defaults": {"threshold": "-40dB", "attack": "1ms", "hold": "50ms", "release": "100ms", "range": "-80dB", "sidechain_hpf": "0Hz", "mix": "100%"}}