ferraus gain
Apply a fixed gain, overall or per channel
Synopsis
ferraus gain <input> [options] [-o <output>]
What it does
Makes the audio louder or quieter by a fixed amount, in decibels (-6dB) or as a factor (0.5x). Give per-channel values as L=-3dB,R=0dB (or 1=..,2=.. for any channel number; unlisted channels are unchanged), like Audition's Amplify. Warns when the result clips.
This command is also an fx stage and a pipeline op: ferraus fx in.wav -o out.wav --fx "gain:key=value".
Examples
Turn the vocal down 6 dB
ferraus gain vocal.wav --by -6dB -o vocal_quiet.wav
Pull the left channel down 1.5 dB
ferraus gain mix.wav --by L=-1.5dB,R=0dB -o mix_balanced.wav
Double the amplitude inside an effects chain
ferraus fx in.wav -o out.wav --fx gain:by=2x --fx fade:out=3s
Options
| Flag | Type | Default | Meaning |
|---|---|---|---|
--by | text | 0dB | Gain in dB (-6dB, +3dB) or as a factor (0.5x); per channel as L=-3dB,R=0dB |
--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.
For models
- MCP tool:
ferraus_gain - Schema:
ferraus schema gain - Pipeline:
{ op: gain, args: { ... } }(flag names with_instead of-) - fx stage: yes
{"command": "gain", "defaults": {"by": "0dB", "mix": "100%"}}