Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
weepy opened this issue Apr 17, 2025 · 0 comments

Comments

@weepy
Copy link

weepy commented Apr 17, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant