Skip to content

EZ Web Audio / AnalyzerOptions

Interface: AnalyzerOptions

Defined in: analyzer.ts:4

Configuration options for creating an Analyzer.

Properties

fftSize?

optional fftSize: number

Defined in: analyzer.ts:10

FFT size for frequency analysis. Must be a power of 2 between 32 and 32768. Larger values provide more frequency detail but less time precision.

Default

ts
2048

maxDecibels?

optional maxDecibels: number

Defined in: analyzer.ts:20

Maximum decibel value for frequency data scaling.

Default

ts
-30

minDecibels?

optional minDecibels: number

Defined in: analyzer.ts:15

Minimum decibel value for frequency data scaling.

Default

ts
-100

smoothingTimeConstant?

optional smoothingTimeConstant: number

Defined in: analyzer.ts:25

Smoothing time constant (0-1). Higher values smooth data over time.

Default

ts
0.8