EZ Web Audio / createEQ
Function: createEQ()
Call Signature
createEQ(
options?):EQEffect
Defined in: packages/core/src/effects/eq-effect.ts:268
Factory function to create an EQEffect.
AudioContext is optional. If omitted, uses the shared library AudioContext.
Parameters
options?
Optional EQ parameters
Returns
A new EQEffect instance
Example
typescript
// Zero-config (flat EQ)
const eq = createEQ()
// With gain adjustments (dB)
const eq2 = createEQ({ low: 3, mid: -2, high: 4 })
// With custom crossover frequencies
const eq3 = createEQ({ low: 3, lowFrequency: 150, midFrequency: 800, highFrequency: 4000 })
// With explicit AudioContext
const eq4 = createEQ(audioContext, { low: 6 })Call Signature
createEQ(
audioContext,options?):EQEffect
Defined in: packages/core/src/effects/eq-effect.ts:269
Factory function to create an EQEffect.
AudioContext is optional. If omitted, uses the shared library AudioContext.
Parameters
audioContext
BaseAudioContext
options?
Optional EQ parameters
Returns
A new EQEffect instance
Example
typescript
// Zero-config (flat EQ)
const eq = createEQ()
// With gain adjustments (dB)
const eq2 = createEQ({ low: 3, mid: -2, high: 4 })
// With custom crossover frequencies
const eq3 = createEQ({ low: 3, lowFrequency: 150, midFrequency: 800, highFrequency: 4000 })
// With explicit AudioContext
const eq4 = createEQ(audioContext, { low: 6 })