Skip to content

Dumb question #19

Description

@MysteryPancake

Hi! I apologize for this dumb question, but I am wondering if it is possible to process an audio buffer of a fixed length with a fixed alpha value without using a script processor?

I am trying to stretch an audio buffer by a constant factor and return the result, but I am unsure how to do this.

This is my current attempt:

const vocoder = new PhaseVocoder(4096, 44100);
vocoder.init();
vocoder.set_alpha(2);
const result = vocoder.process(audioData);
console.log(result);

This results in a blank array of length 2048, probably because I am not advancing the position. I am hoping to retrieve a buffer the length of audioData, but I do not know how.

I apologize as I can see this is a complex library and I have only started to experiment with it. I am hoping to avoid using a script processor as I do not change any variables during playback, and I am hoping to play multiple buffers at the same time.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions