bands function
Levels 0..1 of `count` bars from analyser bytes, on a log scale from LOW to HIGH.
import { bands } from '@dioramajs/audio/visualizer'A band narrower than a bin reads between its two nearest bins, a wider one takes its loudest bin. ring lays the spectrum out twice, mirrored: bass at the bottom, treble at the top.
function bands(
bins: ArrayLike<number>,
rate: number,
count: number,
out: Float32Array,
ring?: boolean,
): voidParameters
| Name | Type | Description |
|---|---|---|
bins | ArrayLike<number> | |
rate | number | |
count | number | |
out | Float32Array | |
ring? | boolean | Default |
Defined in packages/audio/src/visualizer.ts.