SoundTransformation manipulates an audio buffer source node.
SoundTransformation({ audioContext: AudioContext }): { initialize({ audioBuffer: AudioBufferSourceNode; processorJSPath?: string; processorScriptTag?: HTMLScriptElement; }): void}
const transformation = new SoundTransformation({
audioContext
});
transformation.initialize({
audioBuffer,
processorJSPath: "./path/to/processor"
});
transformation.adjustPitchBySemitones();
transformation.adjustSpeedToBPM();