Giter VIP home page Giter VIP logo

web-audio-experiments's Introduction

Web Audio Experiments

Various experiments with Web Audio.

Demos & Docs

Start an app

To start any app ending with -app do:

npm i
cd packages/[project-name]-app
npm start

web-audio-experiments's People

Contributors

miselaytes-anton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

web-audio-experiments's Issues

removeSilence() function breaks on larger files. Making it stereo?

Hi, I really enjoy the web audio experiments you made and was playing around some useful functions you wrote. And noticed a few problems/ possible improvements:
So, as it says in the title - removeSilence() function breaks when feeding it with larger AudioBuffer (also with bigger silence chunks). Well it doesn't technically break but I did a little investigation and found out that the code works up until here:
return signal.filter((v, i) => { const frameIndex = Math.floor(i / numSamplesInFrame); return !longGroups.some(group => group.includes(frameIndex)); });
then it just continues working but making the CPU go above 100% for a way too long time. I believe it could be improved but my skills are limited here. How could I go around this?

Also, how can I make it return stereo buffer, I mean I could technically just fill the second channel with same audio data but would it be the right approach to do like this? Considering I don't want to loose the quality.

Thanks a lot! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.