/** * Bungee Pitch Shift - High-quality pitch shifting and time stretching for Web Audio API * * This package provides real-time, low-latency pitch shifting and time stretching * for the Web Audio API using WebAssembly and AudioWorklet technology. * * @packageDocumentation * * @example * Basic usage: * ```typescript * import BungeePitchShift from 'bungee-pitch-shift'; * // or * import { BungeePitchShift } from 'bungee-pitch-shift'; * * const audioContext = new AudioContext(); * const pitchShift = await BungeePitchShift.create(audioContext); * * // Connect to audio graph * sourceNode.connect(pitchShift.node); * pitchShift.connect(audioContext.destination); * * // Control parameters * pitchShift.setPitch(5); // +5 semitones * pitchShift.setSpeed(1.2); // 20% faster * pitchShift.setMix(0.8); // 80% wet * ``` * * @example * Using with React: * ```typescript * import { usePitchShift } from 'bungee-pitch-shift/react'; * * function AudioPlayer() { * const { pitchShift, isReady } = usePitchShift(audioContextRef.current); * * useEffect(() => { * if (isReady && pitchShift) { * pitchShift.setPitch(2); * } * }, [isReady, pitchShift]); * } * ``` */ export { BungeePitchShift } from './BungeePitchShift'; export { BungeePitchShift as default } from './BungeePitchShift'; export type { BungeePitchShiftConfig, PitchShiftParams, BungeeInfo, } from './types'; export type { BungeePitchShiftEvent, InitializedEvent, InfoEvent, ErrorEvent, EventListener, } from './types'; export type { ExtractEvent } from './types'; export { isInitializedEvent, isInfoEvent, isErrorEvent, } from './types'; export type { IBungeePitchShift } from './types'; //# sourceMappingURL=index.d.ts.map