|
| void | prepare (const AudioSpec &spec) |
| | Prepares the de-esser state and filters.
|
| |
| void | processBlock (AudioBufferView< T > buffer) noexcept |
| | Processes audio in-place. Stereo-linked to preserve imaging.
|
| |
| void | setRemovalListen (bool on) noexcept |
| | Removal listen: the output is what the de-esser takes out. A monitoring control, not in the state.
|
| |
| bool | isRemovalListen () const noexcept |
| |
| void | setStructure (Structure structure) noexcept |
| | Chooses how the cut bell is realised.
|
| |
| Structure | getStructure () const noexcept |
| |
| void | setMixedBell (bool on) noexcept |
| | Runs the cut as one fixed filter mixed by the reduction.
|
| |
| bool | isMixedBell () const noexcept |
| |
| void | reset () noexcept |
| | Resets internal DSP state.
|
| |
| void | setAttack (T ms) noexcept |
| | Sets the detector attack, clamped to [0.1, 20] ms. Non-finite values are ignored.
|
| |
| void | setRelease (T ms) noexcept |
| | Sets the detector release, clamped to [1, 500] ms. Non-finite values are ignored.
|
| |
| void | setFrequency (T hz) noexcept |
| | Sets the sibilance centre frequency in Hz.
|
| |
| void | setBandwidth (T octaves) noexcept |
| | Sets the detection/cut bandwidth in octaves (floored at 0.1). Non-finite values are ignored.
|
| |
| void | setThreshold (T db) noexcept |
| | Sets the detection threshold in dBFS. Non-finite values are ignored.
|
| |
| void | setAutoThreshold (bool on) noexcept |
| | Counts the threshold from the level of the whole input.
|
| |
| bool | isAutoThreshold () const noexcept |
| | Whether the threshold counts from the level of the input (see setAutoThreshold()).
|
| |
| void | setReduction (T db) noexcept |
| | Sets the maximum gain reduction in dB (sign is ignored). Non-finite values are ignored.
|
| |
| void | setDetectionMode (DetectionMode mode) noexcept |
| | Sets the detection mode. Out-of-range values are clamped so the getter stays honest.
|
| |
| T | getGainReductionDb () const noexcept |
| |
| T | getFrequency () const noexcept |
| |
| T | getThreshold () const noexcept |
| |
| DetectionMode | getDetectionMode () const noexcept |
| |
| T | getAttack () const noexcept |
| |
| T | getRelease () const noexcept |
| |
| T | getBandwidth () const noexcept |
| |
| T | getReduction () const noexcept |
| |
| std::vector< uint8_t > | getState () const |
| | Serializes the parameter state (setup/UI threads; allocates).
|
| |
| bool | setState (const uint8_t *data, size_t size) |
| | Restores parameters from a blob (tolerant; rejects foreign ids).
|
| |
template<FloatType T>
class dspark::DeEsser< T >
Stereo-linked, CPU-optimized dynamic-EQ de-esser.
Detection is stereo-linked (one shared envelope) to preserve imaging. Channels beyond the first two are left untouched (pass-through), as is the whole buffer before prepare().
- Template Parameters
-
| T | Sample type (float or double). |
Definition at line 75 of file DeEsser.h.
Counts the threshold from the level of the whole input.
A reference follows the largest sample of the input, all of its band: it rises at once and falls 1 dB per second, and the threshold is added to it. The de-esser then acts on how loud the sibilance is against the voice that carries it, the same at any input level: a threshold of -20 dB reduces a band that comes within 20 dB of the voice's recent peaks. Off by default: the threshold is in dBFS.
State key "autoThreshold" (absent = off).
Definition at line 368 of file DeEsser.h.
Runs the cut as one fixed filter mixed by the reduction.
The default bell is designed again every 16 samples as the reduction moves, a gain that moves in steps. Mixed, the bell is the signal and one fixed filter at the end of the range, of which only the share heard changes, sample by sample:
y = x + w * (end(x) - x), w = (1 - 10^(gr / 20)) / (1 - 10^(-range / 20))
so the centre of the band sits exactly on the reduction of the moment and nothing is designed while it moves. The end is the bell of the band's Q at half the range, carried to the whole range at its centre (the choice DynamicEQ's mixed bands make): nearer the rest the cut is wider than nominal and at the end narrower, by 10^(range / 80) in Q at most. The end filter runs as a normalized ladder and glides 20 ms to a new design when frequency, bandwidth or range move. With no reduction the output is the input, bit for bit. Safe from any thread; the switch restarts the filter memories at the next block. Off by default.
Measured at 48 kHz on a 6 kHz tone that jumps 28 dB 25 times a second under a bell of 12 dB: with a release of 1 or 5 ms the default bell leaves lines 3 kHz away at -46 to -52 dBc and the mixed one at -64 to -96 (the floor the tone's own edges set); with the default 20 ms both sit on that floor. It costs about 2.4 times the default bell (18 to 34 against 41 to 81 ns per stereo frame).
State key "mixedBell" (absent = off).
Definition at line 208 of file DeEsser.h.