b Riding East: Binaural Sound in Chuck

Tuesday, June 10, 2008

Binaural Sound in Chuck

After spending considerable cycles last quarter developing a multi-channel class framework in the Chuck programming language, I began to wonder, in the end, how many people would actually be able to hear 16-channel pieces in a space like the ccrma listening room. I then decided it would be interesting to think about 3D audio spatialization over Chuck and a pair of headphones. So, in addition to convincing some friends to port Chuck to the iPhone (stay tuned), I spent some time reading papers on binaural sound models, including the paper published by Phillip Brown and Richard O. Duda in '98 titled "A Structural Model for Binaural Sound Synthesis".

I've come up with two implementations of binaural sound in Chuck now. The first is my own model built on approximations from my research. The second is a work in progress based on the Brown and Duda paper. As you scan the source, you'll notice how trivial it is to create binaural sound by creating a Chuck class that inherits from the BinAural class I've created. The demonstration code goes on to create sound buffers that load up wave files and buzz a bumble bee by your ears while a thunderclap cracks 130 meters above your head. Eventually it starts to rain. All referenced sound files for the demo are also available.

I will come back to this code shortly and finish implementing models for the pinna. Currently, I have ITD, ILD, and HRTF functions.

Version 1.0
Version 1.1

Data files (must be in a data subdirectory underneath Chuck)


Blogger Charley said...

Very nice work, Jeffrey!! Keep going with this please. It's very interesting.

BTW, you forgot to post the animal_4f.wav file...

Thanks for your efforts :)

11:31 AM  
Blogger Rajiv said...

Jeff! Wow. I don't know if you remember me I joined Tumbleweed when we were small, and left for medical school. Now I am doing primary care/injury at Kaiser, living in SF. Sounds like you are going back to find your roots. Good work.

6:36 PM  
Blogger enigma said...

Hi! Can I have your email adress? I need some information of your implementation of the "Brown and Duda" article.

6:36 AM  
Blogger Andrea Muñoz H said...

Yesterday I went to the Daniel Pearl Memorial Concert, and loved your music. I would really love to hear it again, so I was wondering if there's any place where I can find out when you will be playing again. I am sorry for posting this here, but I couldn't find your email address.
Thank you very much and congratulations!

10:37 PM  
Blogger Chickadeeva said...

Fascinating. Keep it up.

9:15 AM  
Blogger Albert Hans said...

Information discussed on this article is very enlightening and helpful for my project. Thanks for sharing!

Google Adwords

6:07 PM  
Blogger Restu Guru said...

wow so awesome and very important, thanks for sharing sir.

resep kue nastar

resep opor ayam

resep nugget ayam

resep mie ayam

2:01 PM  
Blogger Muhammad Arifin said...

This comment has been removed by the author.

4:17 AM  
Blogger Brian Cailsey said...

Hello, this is very interesting and very creative.
I hope there is a good response from you, Thank you

vimax asli
vimax asli
vimax asli
vimax canada
vimax indonesia
harga vimax asli

12:37 PM  
Blogger rosalia lima said...

I've come up with two implementations of binaural sound in Chuck now. The first is my own model built on approximations from my research.

model kebaya modern

Cara memakai jilbab segi empat
Cara memakai jilbab segi empat

Model rambut pendek

Model Rambut Pendek

Cara terbaru memakai jilbab segi empat

Hijab Segi empat

Cara memakai jilbab segi empat

6:38 AM  
Blogger fais al said...

nice post brother Download lagu mp3

1:49 AM  
Blogger fais al said...

nice post brother Download lagu mp3

1:49 AM  
Blogger Rezaa Abd said...

I love the article. Helpful and good for reading, and be great if you visit my blog and let us share the world of blogging
Latest Information About Car Prices And Specification Car With A Review Of The Car, Latest Technology

Blog that provide the latest information about online business and the best current
Tips and How To Go Perfect Health

5:52 AM  

Post a Comment

<< Home