@miguelar/chido-fx
v0.4.0
Published
Composable real-time Rust and WebAssembly voice effects for the Web Audio API
Maintainers
Readme
@miguelar/chido-fx
Real-time Rust/WebAssembly voice effects for Web Audio, with typed controls, backgrounds, and bounded pitch-preserving time stretching.
Install
npm install @miguelar/chido-fxQuick Start
import { createChidoFxNode, preloadChidoFx } from "@miguelar/chido-fx";
import processorUrl from "@miguelar/chido-fx/processor?url";
import wasmUrl from "@miguelar/chido-fx/wasm?url";
const context = new AudioContext({ sampleRate: 48_000 });
await context.resume();
await preloadChidoFx(context, { processorUrl, wasmUrl });
const effects = await createChidoFxNode(context, { processorUrl, wasmUrl });
await effects.setPreset("cosmic-giant");
source.connect(effects).connect(context.destination);Use HTTPS or localhost and start audio from a user gesture when required by
the browser.
Documentation
These documents are included in the npm package. Complete license terms are in
MA-LICENSE.
