Skip to content
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

Dumb question #19

Open
MysteryPancake opened this issue Oct 25, 2019 · 0 comments
Open

Dumb question #19

MysteryPancake opened this issue Oct 25, 2019 · 0 comments

Comments

@MysteryPancake
Copy link

MysteryPancake commented Oct 25, 2019

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.

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