@dioramajs/audio/visualizer
Exports of @dioramajs/audio/visualizer.
import { bands, default, HIGH } from '@dioramajs/audio/visualizer'Functions
bands | 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. |
readPeaks | Peaks of the JSON: audiowaveform (v1, v2, any channels and bits), or an array of 0..1. |
resample | `count` bar heights from peaks: the loudest point of each bar's stretch, or between two. |
trace | The wave of `POINTS` from analyser bytes: from the first rising zero crossing, so a steady tone stands still, averaged down from SPAN samples and tapered to the middle line at both ends. |