Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

bands function

Levels 0..1 of `count` bars from analyser bytes, on a log scale from LOW to HIGH.

View as Markdown
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,
): void

Parameters

NameTypeDescription
binsArrayLike<number>
ratenumber
countnumber
outFloat32Array
ring?boolean

Default false.

Defined in packages/audio/src/visualizer.ts.