Jump to content

Setting pitch and bass with BabylonJS


KarelAnker
 Share

Recommended Posts

I'm unsure if Babylon has this feature, however this functionality is in WebAudio. It would greatly improve the sound experience if there's an implementation of WebAudio, including modifications to pitch, bass, playback speed and some other things.

It would be great if Babylon could have this feature implemented in its 3D space.

Link to comment
Share on other sites

Hi,

Everything implemented is documented here: http://doc.babylonjs.com/tutorials/16._Playing_sounds_and_music

I'm exposing the playrate but not all you need. Can you please tell me exactly what you would need? I haven't finished everything I've planned on web audio yet. So you could help me setting up priorities. :)

Bye,

David

Ah :). That would help with the pitch.

 

It would be great if there's an equalizer, and more specific to my project: think of a radio in a vehicle. When you're in the car, you would hear the sound like you would normally, but when you're outside the car you hear more of the bass than all the other sounds. That's why I need an equalizer, or a way to alter the bass "volume".

Link to comment
Share on other sites

Ok. My objective was to work on dopler effect and convolver to let you doing such effects (cathedral, radio and so on).

That's why I've ben working on SoundTracks. The idea is to apply on specific effect on a soundtrack and move a sound from a track to another based on the effect you'd like to apply.

Sounds great

Link to comment
Share on other sites

Hi K!

 

https://github.com/carlosrafaelgn/GraphicalFilterEditor

 

http://carlosrafaelgn.com.br/GraphicalFilterEditor

 

Push the play button, and start drawing the line graph.  A pretty nice ?#-band equalizer, eh?  (Wingy dances to the jungle beat.)

 

The Web Audio API is a powerful beast.  I bet it can do anything.  Are YOU going to code-up the first Babylon.JS WAAPI Graphic Equalizer, KA?  C'mon!   :)

 

I went looking-around in https://github.com/BabylonJS/Babylon.js/blob/master/src/Audio/babylon.sound.js ... found...

 

"BABYLON.Engine.audioEngine.audioContext

 

WOW!  GRUESOME SOUNDING NAME, huh?  I'm quite sure that we can take over the world from there.  Connect a few filters together, and boom... graphic equalizer, controlled with mesh knobs.  Yay!   Code it up, KarelAnker. 

 

I'll watch.  :)  (cuz I'm really lazy)

Link to comment
Share on other sites

  • 2 weeks later...

Hi K!

 

https://github.com/carlosrafaelgn/GraphicalFilterEditor

 

http://carlosrafaelgn.com.br/GraphicalFilterEditor

 

Push the play button, and start drawing the line graph.  A pretty nice ?#-band equalizer, eh?  (Wingy dances to the jungle beat.)

 

The Web Audio API is a powerful beast.  I bet it can do anything.  Are YOU going to code-up the first Babylon.JS WAAPI Graphic Equalizer, KA?  C'mon!   :)

 

I went looking-around in https://github.com/BabylonJS/Babylon.js/blob/master/src/Audio/babylon.sound.js ... found...

 

"BABYLON.Engine.audioEngine.audioContext

 

WOW!  GRUESOME SOUNDING NAME, huh?  I'm quite sure that we can take over the world from there.  Connect a few filters together, and boom... graphic equalizer, controlled with mesh knobs.  Yay!   Code it up, KarelAnker. 

 

I'll watch.  :)  (cuz I'm really lazy)

Got it working, just create a new biquad filter and pass it to the sound

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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