@moodbar/wasm
v0.4.0
Published
WebAssembly bindings for moodbar audio visualization
Maintainers
Readme
@moodbar/wasm
WebAssembly bindings for Moodbar analysis and SVG rendering.
Install
npm install @moodbar/wasmUsage
import init, { analyze, svg } from "@moodbar/wasm";
await init();
const sampleRate = 44_100;
const pcm = new Float32Array(sampleRate).fill(0); // 1 second of silence
const analysis = analyze(pcm, sampleRate);
const svgMarkup = svg(analysis, { width: 600, height: 64, shape: "Strip" });