# bands

function in `@dioramajs/audio/visualizer`

```ts
import { bands } from '@dioramajs/audio/visualizer'
```

Levels 0..1 of `count` bars from analyser bytes, on a log scale from LOW to HIGH. 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.

```ts
function bands(
  bins: ArrayLike<number>,
  rate: number,
  count: number,
  out: Float32Array,
  ring?: boolean,
): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `bins` | `ArrayLike<number>` |  |
| `rate` | `number` |  |
| `count` | `number` |  |
| `out` | `Float32Array` |  |
| `ring?` | `boolean` |  |

Defined in [packages/audio/src/visualizer.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/audio/src/visualizer.ts#L150).
