🐇 Burrow 15 · Nov 16 · 2 min read

How 8D Audio Tricks Your Ears, and How the 8D Audio Maker Does It

Climb out

New headphones

I got new headphones and was messing around with equalizers and spatial sound settings, and that got me thinking about those 8D songs on YouTube that go around your head. I wanted to drag the sound around my head myself instead of it just spinning, so that's what this does. You drop in an MP3 or MP4 or use one of the demo songs and drag it wherever.

There aren't 8 dimensions lol

You can tell where a sound's coming from with your eyes closed cause your ears hear it a little differently. Something on your left hits your left ear a tiny bit sooner and louder, and the shape of your head and ears changes the tone depending on where it is. That's measured and called an HRTF, and if you play a sound to each ear with those differences your brain thinks it's actually there. That's also why it only works with headphones.

tools/8d-audio-maker.htmlThe browser already does this
const pan = c.createPanner();
pan.panningModel = 'HRTF';
pan.distanceModel = 'inverse'; pan.refDistance = 1; pan.rolloffFactor = 0.7;

Browsers already have an audio engine built in and its panner can use an HRTF, so you just give it a spot in 3D around the listener and it does the rest. The maker moves that spot every frame, in a circle for normal 8D, a figure 8, side to side, a spiral, or wherever you drag it.

The 8D Audio Maker with the circle around your head and the sounds panelThe maker

Drop a song in the middle or pick a demo and drag it around the circle.

Splitting a song

Really clean splitting into vocals, drums and guitar is super heavy, so it does two quicker tricks instead. It splits by pitch into bass, mids and highs with filters, and it splits the middle of the mix (usually vocals) from the sides by adding and subtracting the left and right channels. It's not perfect but it's enough to put the bass behind you and the vocals in front.

Free songs, made on the spot

The demo songs get made by the page itself every time so there's no copyright stuff at all, drums, bass, chords and a melody from simple tones and noise. Each part's already its own track so it's perfect for spreading around your head.

Saving it

When you save it renders the whole song again as fast as your computer can go with every sound moving how it did, then saves it as a WAV.

The burrow ends hereClimb back up to the surface