Jump to content

Apply Web Audio API filters to babylon sounds

Bob Razowsky

Recommended Posts

Hi Bob!  Good to see you again.

I'm not qualified to answer this question... I think @davrous and @Stvsynrj are the local web audio heroes.

Allow me to try to look foolish, for ya.  :)  Check out https://github.com/BabylonJS/Babylon.js/tree/master/src/Audio , or more specifically...


Notice the term audioContext showing-up often in that file?  Well, I believe that audioContext is the same as...


See sections 2.27 and 2.28.  In theory, once you have a ref to the audioContext, you have access to those filters.

You might be interested in Stvsynrj's analyser tutorial, too.  Everything needed for that demo... was recently added to BJS (one layer above core).  I'm not REAL sure what the analyser does, but it certainly COULD be a "spectrum analyser".  In the audioEngine source, you'll see mention of it.  if (this._connectedAnalyser), etc.   Spectrum analysers are quite related to graphic equalizers, as you likely know.  I think they are quite dependent upon the use of filters.

Maybe this helps.  Hopefully, smarter people than I will respond soon.  Be well.   :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...