WAVEFORM_DEFAULT_BINS
const
Audio
Default number of waveform peaks (bins) produced by useWaveform: 200 is the sweet spot between visual density (one pixel per peak on a 200 px-wide waveform) and decode cost (~5 ms on a 30 s mp3).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useWaveform
OrigamAudio
Usage
Examples
Ready-to-paste code snippets using this constant.
Increase resolution for a wide waveform