Super Mario Brothers Theme - Huggins Illusion

Huggins pitch via all-pass filtering played to the tune of Mario bro's
2.7K Downloads
Updated 1 Oct 2007

View License

Huggins binaural pitch is a faint tone which can be detected by slightly altering a noise sample played to one of the two ears. The pitch you hear does not actually exist in the signal, but is generated in your head by neural interactions. This illusion is still not fully understood. Please see the PDF document for more details on the efficient generation of Huggins pitch using all-pass filters.

This submission is made of 2 functional files. The huggins.m function is where all the DSP resides and is where the Huggins pitch is generated. The uploaded screenshot shows the phase reversals which can be introduced fom the cascade filtering. The mario_huggins.m file is where the fun stuff is for those who are not too interested in the details.

The Super Mario Brothers theme song is used as a demo here as it has a nice alto and tenor part which coincide in timing and are in a good frequency range to be able to hear the binaural Huggins pitch. To hear the tune place the two m files in the same directory and run the mario_huggins script. Use good headphones and be prepared to wait a few seconds for processing of the song. Concentrate as the pitch is very faint! Mario is in your brain! Try one headphone at a time with a finger in your other ear to make sure and you should just hear noise. If you dont have the signal processing toolbox just knock out the Butterworth filtering at the end of the Mario theme file and all should work fine. Have fun . . .

Kudos to:
Elisabet Molin - filter coefficient derivation
Stewart Bozarth - Song Transcription
James Humes - Original Mario song matlab-central submission

Cite As

Nick Clark (2024). Super Mario Brothers Theme - Huggins Illusion (https://www.mathworks.com/matlabcentral/fileexchange/16647-super-mario-brothers-theme-huggins-illusion), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Video games in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Theme from Super Mario Brothers Song

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

spelling error in summary