ferraus expand
Downward expander
Synopsis
ferraus expand <input> [options] [-o <output>]
What it does
Turns quiet passages down further: every dB below the threshold becomes 'ratio' dB. The gentle alternative to a gate.
This command is also an fx stage and a pipeline op: ferraus fx in.wav -o out.wav --fx "expand:key=value".
Examples
Reduce room noise between phrases
ferraus expand vo.wav -o vo_exp.wav
Stronger expansion
ferraus expand drums.wav --threshold -30dB --ratio 3:1 -o tighter.wav
Very gentle, slow expansion that lowers room tone without chopping word endings
ferraus expand podcast.wav --threshold -45dB --ratio 1.5:1 --release 250ms -o podcast_exp.wav
Gate-like expansion with a fast attack so the tom's hit is not softened
ferraus expand tom.wav --threshold -35dB --ratio 4:1 --attack 1ms -o tom_exp.wav
Options
| Flag | Type | Default | Meaning |
|---|---|---|---|
--threshold | gain | -40dB | Level below which expansion starts |
--ratio | ratio | 2:1 | Expansion ratio below the threshold |
--attack | time | 5ms | Time to open when the level rises |
--release | time | 100ms | Time to close when the level falls |
--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_expand - Schema:
ferraus schema expand - Pipeline:
{ op: expand, args: { ... } }(flag names with_instead of-) - fx stage: yes
{"command": "expand", "defaults": {"threshold": "-40dB", "ratio": "2:1", "attack": "5ms", "release": "100ms", "mix": "100%"}}