API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classPitchShiftFilter

@codexo/exojs / audio / stable

Real-time pitch shifter via granular synthesis (WorkletFilter). Quality: good for ±1 octave (pitch 0.5x-2.0x). Beyond that, audible artifacts (graininess, phase issues). For high-quality pitch shift, a phase-vocoder approach is required and not available in V1. Latency: ~half-grain-size = ~10ms at default 1024-sample grains (at 48kHz sample rate). Not suitable for live monitoring; fine for games / playback. Use cases: - Sound variation: random ±200 cent pitch on each footstep / bullet - Voice effects: chipmunk (1.5x) or demon (0.7x) for game NPCs - Detune layering: stack 0.99x and 1.01x for thick chorused sound

5
props
2
methods
0
events
Import
import { PitchShiftFilter } from '@codexo/exojs'

Real-time pitch shifter via granular synthesis (WorkletFilter).

Quality: good for ±1 octave (pitch 0.5x-2.0x). Beyond that, audible artifacts (graininess, phase issues). For high-quality pitch shift, a phase-vocoder approach is required and not available in V1.

Latency: ~half-grain-size = ~10ms at default 1024-sample grains (at 48kHz sample rate). Not suitable for live monitoring; fine for games / playback.

Use cases: - Sound variation: random ±200 cent pitch on each footstep / bullet - Voice effects: chipmunk (1.5x) or demon (0.7x) for game NPCs - Detune layering: stack 0.99x and 1.01x for thick chorused sound

Constructors 1
new(options: PitchShiftFilterOptions): PitchShiftFilter
Methods 2
_onWorkletReady(): void
destroy(): void
Properties 5
inputNode: AudioNode
outputNode: AudioNode
pitch: number
ready: Promise<void>
wet: number
Source