Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
How can I use CreateScriptProcessor for real time audio time stretching algorithm in JavaScript?

I want to use a time stretch Algorithm in my project but I don't know where should I call my function TimeStretchAlgorithm().

const TimeStretchAlgorithm = (playbackspeed)=>{
 // algorithm codes
}


let node1 = audioCtx.createScriptProcessor(4096, 1, 1);
node1.onaudioprocess = function (e) {
   let inputBuffer = e.inputBuffer;
   let outputBuffer = e.outputBuffer;

   for (let channel = 0; channel < outputBuffer.numberOfChannels; channel++) {
        let inputData = inputBuffer.getChannelData(channel);
        let outputData = outputBuffer.getChannelData(channel);

        let playbackspeed = 0.7;
        outputData = TimeStretchAlgorithm(playbackspeed);
      }
  }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!