EQParams

object EQParams

Parameter IDs for the AudioEffectType.PARAMETRIC_EQ effect.

Parameters are organized per band. To address a specific band, calculate the parameter offset as bandIndex * PARAMS_PER_BAND + paramId. For example, the frequency of band 2 is at offset 2 * 4 + BAND_FREQUENCY = 8.

See also

Properties

Link copied to clipboard
const val BAND_FREQUENCY: Int = 0

Center frequency of the band. Range: 20.0 to 20000.0. Default: 1000.0. Unit: Hz.

Link copied to clipboard
const val BAND_GAIN: Int = 1

Gain adjustment for the band. Range: -24.0 to 24.0. Default: 0.0. Unit: dB.

Link copied to clipboard
const val BAND_Q: Int = 2

Quality factor controlling the bandwidth of the band. Higher values produce a narrower band. Range: 0.1 to 10.0. Default: 1.0.

Link copied to clipboard
const val BAND_TYPE: Int = 3

Filter type for the band (e.g., peaking, low-shelf, high-shelf). Interpreted as an integer cast to float. Default: 0 (peaking).

Link copied to clipboard
const val PARAMS_PER_BAND: Int = 4

Number of parameters per EQ band. Used to calculate parameter offsets for multi-band addressing.