Skip to content

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

Open
@weepy

Description

@weepy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @weepy

        Issue actions

          Sample Rate of AutomaticVocalPitchCorrection is out of sync with the AudioContext. · Issue #48 · superpoweredSDK/web-audio-javascript-webassembly-SDK-interactive-audio