
Spectrogram art: how pictures get hidden inside sound
Open certain songs in a spectrogram viewer and a face looks back. It isn't a trick of the light: somebody drew it in frequencies. Making one takes a picture, a free tool and about five minutes. Making one that other people can still see takes a little more care.
By Nell Averdon ·
Beatyo is a phone appPoint your camera at the code to get it. No sign-up.
Short answer
Spectrogram art is sound built so that its spectrogram shows a picture. Each row of the image becomes a tone, and brightness sets how loud that tone is over time. To make one, load a high-contrast picture into a program that plays images, such as Virtual ANS, keep it between about 400 and 9,000 Hz, save the sound, and check it in a spectrogram viewer such as Audacity.
A spectrogram is already a picture
Sound editors can show audio two ways. The waveform shows loudness over time. The spectrogram shows which frequencies are present, with time running left to right, low sounds at the bottom, high ones at the top, and brightness for loudness. A whistle is a single line. A cymbal is a cloud.
If sound can be turned into that picture, a picture can be turned back into sound. Take each row of pixels, assign it a frequency, and make the tone louder wherever the row is bright. Play all the rows together and the spectrogram of the result is your image.
The famous ones are on one single
Aphex Twin's 1999 single "Windowlicker" holds two. The last 11 seconds or so of the title track draw a spiral. The B-side, known as "Equation" or "Formula", shows a distorted portrait of Richard D. James near its end. Both were made with MetaSynth, a Mac program that converts images to audio.
Wired reported on the face in 2002, three years after the record came out. To find it yourself, open the B-side in an editor, zoom to the last half minute and switch the frequency scale to logarithmic. On a linear scale the face looks stretched, because the picture was drawn for a logarithmic one.
Making your own
Virtual ANS is built for this. It runs on Windows, Mac, Linux, iPhone and Android, loads PNG, JPEG and GIF files, and plays them as spectrograms. It imitates the ANS, a photoelectronic synthesizer made by Evgeny Murzin.
- Choose a picture with few shades: a logo, thick letters, a face lit from one side. Raise the contrast until it looks like a stencil.
- Put it on black. Every bright spot becomes a tone, so a white background roars. Invert a black-on-white drawing first.
- Leave an empty band at the top and bottom. The picture's height is the range of pitches, and the edges are where it fights with bass or gets cut off by lossy formats. Roughly 400 to 9,000 Hz is the safe middle.
- Aim for about six seconds of sound if the picture is wider than tall, and ten for a panorama. Width is time, so stretch the picture before loading it if the result goes by too fast.
- Save or record the result, open it in Audacity in spectrogram view, and look for your picture.
The program also has painting tools, so you can draw on the spectrogram with a brush and hear each stroke.
Keeping it visible after compression
A WAV keeps everything. MP3, AAC and the formats streaming services use keep what people are likely to hear, and they cut quiet, high and masked sounds first. Your picture is all three if you place it badly.
- Use thick shapes. A one-pixel line disappears, while a bar twenty pixels tall only blurs.
- Leave it alone in time. Put it in an intro, a break or the fade, where nothing louder covers it.
- Export a test MP3 at 192 kbps, reopen it, and look. Whatever you see there is close to what listeners will get.
- Keep the level around 15 to 20 dB below the music if it overlaps anything.
Hiding it where it makes musical sense
Harsh tones are easier to accept when the song already has noise in it. A reversed cymbal, vinyl crackle, a storm or a build-up before a drop will all cover the sound while leaving gaps the eye can read. Industrial tracks get away with it in the open, and so does anything on top of a hard techno pattern. In an acoustic song, save it for the silence after the last chord.
Games use the idea as a puzzle: a strange sound file that shows a code when you look at it properly. If that's your plan, hint at it, because nobody opens a spectrogram by accident.
When you'd rather hear the picture as music
Spectrogram art is for the eyes. The musical version treats height as pitch on a scale, so a skyline becomes a tune and nothing is hidden. Turning a picture into music compares the methods side by side.
You can also do both. Make a melody from a portrait, then hide the same portrait in the last six seconds. Apps and websites for drawing music lists more tools on either side of that line.
Related guides
Sources
Frequently asked questions
Which Aphex Twin song has the face in it?
The second track on the 1999 Windowlicker single, the one usually called Equation or Formula. The face appears near the end. The spiral is a different image, in the last seconds of Windowlicker itself, and the two are often mixed up.
Can I see spectrogram art on a phone?
Yes. Search your app store for a spectrogram or spectrum analyzer, play the sound from another device, and watch the display scroll. The picture will be rough, because the phone also hears the room, but large shapes are easy to recognize.
Can I hide text or a QR code this way?
Text works well if the letters are thick. A QR code is risky: it needs clean squares and a spectrogram blurs edges. If you try one, use the smallest code you can, stretch it over ten seconds, and test it with two different phones.
Does it damage speakers or ears?
Not at sensible volume. The danger is surprise, because the sound is bright and steady and seems louder than music at the same level. Turn the volume down before you play one, and keep it under the music if you release it.