Ambisonic audio generator — Audio in 3D

Miki Lombardi
2 min readJan 3, 2020

Did you ever listen to an ambisonic audio file?

A sample of an ambisonic audio track

What is an Ambisonic audio?

It is a full-sphere surround sound format audio track that reproduce (or simulate) a 360deg source (x, y, z) with a lot of sounds mixed up in a lot of different channels, that comes from different angle. The following image will explain it better, with a graphical solution:

A simulation of what is an ambionic recording audio graph. Red and blue are two different mic, positioned in two different way

On youtube you can find a lot of ambisonic video and a lot of music.
Also, some songs, may sound even better with this method! Give it a try!

So, I started to ask me: how I can convert a simple audio track (eg. Mp3) to a similar or look like Ambisonic/3D audio? Here we go:

note: this will not make a real ambisonic audio, but a simulated one

I made this simple repository to rearrange a mp3 audio file to simulate a surround sound sphere.

Thanks to PyDub I can manage to add some channels, revert the phase and update it by following a 360deg form, gave me from a simple formula (cos and sin).

The idea is still simple, as the python code, but it worked pretty well.
I’m also trying to implement some kind of effects that will make the generated audio file more deep and mystic.

If you like the idea, feel free to contribute!

Cheers!

--

--

Miki Lombardi

Co-Founder & Speaker at Schordinger Hat | Fullstack Engineer at Growens