web-audio-javascript-webassembly-SDK-interactive-audio icon indicating copy to clipboard operation
web-audio-javascript-webassembly-SDK-interactive-audio copied to clipboard

Sample Rate of AutomaticVocalPitchCorrection is out of sync with the AudioContext.

Open weepy opened this issue 6 months ago • 0 comments

In my local version and also the web demo - in the worklet's samplerate is different from the effect:

 this.effect = new this.Superpowered.AutomaticVocalPitchCorrection(      
      this.samplerate // 44100
 );
this.effect.samplerate // 48000

I notice there's a commented out line:

// Ensure the samplerate is in sync on every audio processing callback
// this.effect.samplerate = this.samplerate;

Uncommenting this seems to make it work OK.

weepy avatar Apr 17 '25 07:04 weepy