API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classGranularEffect
Granular synthesis filter - slices input into small Hann-windowed grains and replays them with randomized parameters. Use cases: - Ambient texture: long grain (200ms+), low density (10-30/s), high spread, pitch range 0.5-1.5x. Creates evolving pad-like sounds. - Glitch: short grain (10-20ms), high density (100+/s), very high spread, pitch range 0.7-1.3x. Stuttering, lo-fi effects. - Time-stretch (low pitch with overlap): grain ~50ms, density 50/s, spread 0, pitch 1.0. Pseudo-stretches the input by buffering. - Pitch cloud: medium grain, medium density, pitchMin 0.5, pitchMax 2.0 gives a "shimmer" effect of overlapping pitches.
import { GranularEffect } from '@codexo/exojs-audio-fx'Granular synthesis filter - slices input into small Hann-windowed grains and replays them with randomized parameters. Use cases:
- Ambient texture: long grain (200ms+), low density (10-30/s), high spread, pitch range 0.5-1.5x. Creates evolving pad-like sounds. - Glitch: short grain (10-20ms), high density (100+/s), very high spread, pitch range 0.7-1.3x. Stuttering, lo-fi effects. - Time-stretch (low pitch with overlap): grain ~50ms, density 50/s, spread 0, pitch 1.0. Pseudo-stretches the input by buffering. - Pitch cloud: medium grain, medium density, pitchMin 0.5, pitchMax 2.0 gives a "shimmer" effect of overlapping pitches.
new(options: GranularEffectOptions): GranularEffect_onWorkletReady(): void_setAudioParam(name: string, value: number): voiddestroy(): voiddensity: numbergrainSize: numberinputNode: AudioNodeoutputNode: AudioNodepitchMax: numberpitchMin: numberready: Promise<void>spread: numberwet: number