HTML Code to Auto-Play MP3 Audio Files

Autoplay of audio files has long been considered bad form for websites, but I just can’t help myself. It’s just too fun. I’ve set a piece to play at the entrance of my site and will setup a short audio sample to play on the front of my blog.

You don’t have to embed in a flash player, and you can call up whatever audio format you want (.wav, MP3. .ra, etc.). If you are super evil like me you can set the file to “hidden – true” so no one can turn the music off. My front page is a splash page so if people don’t like the song they can always click to another section.

Here’s the code to autoplay MP3 audio music files on your website page:
*********************

embed src=”http://www.yourwebsite.com/audiofolder/youraudio.mp3″ loop=”true” autoplay=”false” width=”145″ height=”60″></embed

*********************

NOTE: You will need to put a “<” at the beginning of code and a “> ” at the end. I couldn’t post it with the tags because my blog think’s it is HTML code (which it is).

Autostart – is to automatically start the song playing.
Hidden – is setting for audio controls.
If control is hidden then dimensions are not shown anyway.
Replace URL with exact location of your audio file.

Test Your Musical Skills in 6 Minutes

histogram.jpgCheck out the Online Pitch and Hearing Test by Jake Mandell. It’s fun and very difficult. Over 15,000 have taken the test online, so you can see how your ears fair against other people.

No, I’m not going to post my score – because like most other people I’m embarrassed by my score. In order to retain my musical dignity I need to point out the obvious – that the tones used in this test are not timbres and patches normally encountered in music production or performance.

.
ABOUT JAKE MANDELL AND THE TEST

While working at the music and neuroimaging lab at Beth Israel/Harvard Medical School in Boston, I developed a quick online way to screen for the tonedeafness. It actually turned out to be a pretty good test to check for overall pitch perception ability. The test is purposefully made very hard, so excellent musicians rarely score above 80% correct. Give it a try!

In our research, we were looking for neuro-anatomical correlates of tonedeafness (called “congenital amusia” in the scientific literature. We gave several dozen subjects a high-resolution MRI scan and used a statistical package to analyze the images. This technique, called VBM (voxel-based morphometry), has been used to study the changes in the brain caused by Alzheimer disease and many other neurological conditions. The test you are about to take was used as a screening test to roughly characterize patient’s pitch discrimination and musical memory abilities. Even though musical memory is strongly tested here, we have found that people who are tonedeaf tend to have normal musical memories.

ABOUT JAKE MANDELL
I am currently a medical student at UMass. I have a musical background, having composed several electronic music albums under my own name. I formerly worked in Berlin, Germany, for Native Instruments, and was involved with the Reaktor and Absynth instruments. On the medical side of things, I am interested in using radiological technologies, such as anatomical and functional MRI, to investigate musical perception.