1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| sp-audio-fx-plugin-phaser | Phaser FX plugin — allpass filter cascade with LFO modulation for sweeping notches. Rate, depth, stages, feedback, mix. Part of audio-fx-plugin-* family. |
sp-audio-fx-plugin-phaser
| Symbol | Kind | Responsibility |
|---|---|---|
PhaserPlugin |
Class | Phaser FX plugin extending AbstractAudioFxPlugin |
PhaserPluginOptions |
Type | Rate, depth, stages, feedback, center frequency, mix |
PhaserPluginOptionsSchema |
Schema | Zod schema for options validation |
PhaserPresetDataSchema |
Schema | Zod schema for serialisable preset |
File Structure: packages/media/audio-fx/audio-fx-plugin-phaser/src/{phaser,schemas}/
Sibling packages:
@suaveplan/audio-fx-plugin-base— FX plugin foundation@suaveplan/audio-fx-plugin-flanger— flanger plugin (similar modulated delay)
Patterns:
Quick Start:
import { PhaserPlugin } from "@suaveplan/audio-fx-plugin-phaser";
const phaser = new PhaserPlugin({ rate: 0.4, depth: 0.6, stages: 6, feedback: 0.5, mix: 0.4 });
Constraints:
- Extends
AbstractAudioFxPluginfrom@suaveplan/audio-fx-plugin-base - Cascade of allpass filters creates frequency notches
- LFO modulates center frequency of allpass chain
- More stages = more notches = richer effect
- Feedback routes output back to input for resonance
- Rate syncs to transport BPM when
sync: true - Mix control for dry/wet blend
- Preset schema validates all parameters
Checklist:
PhaserPluginextendsAbstractAudioFxPlugin- Allpass cascade creates frequency notches
- LFO sweeps notches through the spectrum
- Feedback increases resonance at notch frequencies
- More stages produce more notches