Sonify

Turn your pictures into sound.

Sonify is a web experiment that reads an image, pixel by pixel, and plays it back as music. Load a picture, press Sonify, and listen.

01 What is Sonify?

An image, read as a melody.

Sonify uses the Web Audio API to synthesize sound directly from a picture. The canvas is divided into a grid; the average color of each block is mapped to pitch, gain and timbre, then sequenced into a short, looping phrase.

Adjust the image with the on-screen effects and the music changes with it — because the sound is read from the filtered pixels, not the original. Editing the picture is editing the song.

02 Why color & sound?

Both evoke an emotional response.

“The sound of colours is so definite that it would be hard to find anyone who would try to express bright yellow in the bass notes, or dark lake in the treble.” — Wassily Kandinsky, Concerning the Spiritual in Art

Sonification — turning data relations into sound you can perceive — has no single agreed paradigm. That said, Sonify’s mapping is based on creative intuition.

General moods associated with colors

RedPower, energy, excitement
OrangeConfident, creative
YellowCheerful, optimistic
GreenHarmony, balance
BlueHonest, calming, soothing
VioletMajestic, inspiring

03 Parameter mappings

Every control drives the synth.

Each slider is wired to a specific musical parameter. Color and tone shape pitch and loudness; the red, green and blue channels each voice a different waveform; the effects become audio effects.

Color & toneSound parameter
HuePitch detune amount
SaturationVoice separation
LightnessNote gain
ContrastNote gain
BrightnessNote gain
ChannelWaveform
RedSquare wave
GreenSine wave
BlueTriangle wave
EffectAudio parameter
BlurReverberation amount
SharpenAmplitude attack / decay
GlowNote gain
NoiseDelay amount

04 Hear it back

The output as a spectrogram.

Live spectrogram of the player output.
  • Reading Inverse spectrogram mapping
  • Polarity Positive
  • Range Scaled between C3 – C6
  • Scale Pentatonic
  • Sequence 16 eighth-notes