32 lines
1.5 KiB
Markdown
32 lines
1.5 KiB
Markdown
# @suaveplan/audio-fx-plugin-sampler - sampler plugin for the @suaveplan/audio-fx-plugin-* family.
|
|
|
|
sampler plugin for the @suaveplan/audio-fx-plugin-* family.
|
|
|
|
Member of the `@suaveplan/audio-fx-plugin-*` family. Universal (browser / server / offline / worklet identical). Depends on `@suaveplan/audio-fx-plugin-base` for the `AudioFxPlugin` contract; declares no other `@suaveplan/audio-fx-plugin-*` deps.
|
|
|
|
<!-- begin:auto-docs -->
|
|
## Documentation tree
|
|
|
|
- [sampler](./src/sampler/sampler.md) — `SamplerPlugin` is the universal polyphonic sampler. `loadSample(note, url)` fetches a raw `Float32Array` PCM buffer fr…
|
|
- [sampler](./src/sampler/sampler.md) — `SamplerPlugin` is the universal polyphonic sampler. `loadSample(note, url)` fetches a raw `Float32Array` PCM buffer fr…
|
|
- [schemas](./src/schemas/schemas.md) — Zod schemas validating the construction-time options, load options, and preset payload of `SamplerPlugin`. These run on…
|
|
- [schemas](./src/schemas/schemas.md) — Zod schemas validating the construction-time options, load options, and preset payload of `SamplerPlugin`. These run on…
|
|
<!-- end:auto-docs -->
|
|
|
|
## Composition
|
|
|
|
```ts
|
|
import { PluginChain, DefaultBusRegistry } from "@suaveplan/audio-fx-plugin-base/chain";
|
|
import { /* Plugin */ } from "@suaveplan/audio-fx-plugin-sampler";
|
|
|
|
const plugin = new /* Plugin */();
|
|
const chain = new PluginChain({
|
|
buses: new DefaultBusRegistry(),
|
|
plugins: [plugin],
|
|
});
|
|
```
|
|
|
|
## Status
|
|
|
|
Replaces the `./sampler` subpath of the bundled `@suaveplan/audio-plugins-fx`.
|