Skip to content

HighShelfFilter

Added in v0.21.0

A high shelf filter is a filter that either boosts (increases amplitude) or cuts (decreases amplitude) frequencies above a certain center frequency. This transform applies a high-shelf filter at a specific center frequency in hertz. The gain at nyquist frequency is controlled by {min,max}_gain_db (note: can be positive or negative!). Filter coefficients are taken from the W3 Audio EQ Cookbook

HighShelfFilter API

min_center_freq: float • unit: hertz
Default: 300.0. The minimum center frequency of the shelving filter
max_center_freq: float • unit: hertz
Default: 7500.0. The maximum center frequency of the shelving filter
min_gain_db: float • unit: Decibel
Default: -18.0. The minimum gain at the nyquist frequency
max_gain_db: float • unit: Decibel
Default: 18.0. The maximum gain at the nyquist frequency
min_q: float • range: (0.0, 1.0]
Default: 0.1. The minimum quality factor Q. The higher the Q, the steeper the transition band will be.
max_q: float • range: (0.0, 1.0]
Default: 0.999. The maximum quality factor Q. The higher the Q, the steeper the transition band will be.
p: float • range: [0.0, 1.0]
Default: 0.5. The probability of applying this transform.