Git Product home page Git Product logo

Comments (9)

rtoy avatar rtoy commented on August 24, 2024 2

This would also be a good excuse for providing access to an FFT routine, couching it in terms of creating the necessary arrays to be used for a PeriodicWave. Then, combined with an OscillatorNode and PeriodicWave, you would have access to FFT and IFFT routines, in a roundabout way. :-)

from web-audio-api-v2.

rtoy avatar rtoy commented on August 24, 2024 1

Looping an AudioBufferSourceNode might work, but it will behave differently from a PeriodicWave created from the time-domain data. In particular, setting the frequency and detune will probably produce a nicer waveform, and it will be band-limited. Don't think AudioBufferSourceNode detune will give band-limited signals.

from web-audio-api-v2.

padenot avatar padenot commented on August 24, 2024

You're looking for AudioBufferSourceNode and its loop, playbakcRate and detune attribute I believe.

In any case, I'm transferring this to the v2 repo, where we're handling feature requests.

from web-audio-api-v2.

carlsmith avatar carlsmith commented on August 24, 2024

Thanks, @padenot. I'll look into using AudioBufferSourceNode. Thanks for transferring this. I didn't know about the v2 repo.

from web-audio-api-v2.

carlsmith avatar carlsmith commented on August 24, 2024

Sorry. I thought I was closing the issue for the other repo.

from web-audio-api-v2.

padenot avatar padenot commented on August 24, 2024

Don't think AudioBufferSourceNode detune will give band-limited signals.

It does in Gecko (at the expense of being slightly slower to compute).

from web-audio-api-v2.

rtoy avatar rtoy commented on August 24, 2024

Teleconf: This can all be done without adding a new feature. It just requires an FFT for which there are lots of libraries out there that would work.

Maybe we can add a small document/wiki page explaining how it can be done.

from web-audio-api-v2.

padenot avatar padenot commented on August 24, 2024

Virtual F2F:

  • Like other issues, this needs up to date benchmark on FFT speed in WASM, because it's well possible that this is perfectly doable in script today
  • Older benchmarks exist, but this was before WASM and before WASM with SIMD, so it's time to do a new benchmark
  • If performances are acceptable, this can be closed and AudioBufferSourceNode can be used instead.

from web-audio-api-v2.

padenot avatar padenot commented on August 24, 2024

AudioWG virtual F2F:

  • This is doable today, closing.

from web-audio-api-v2.

Related Issues (20)

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.