Paint and Create with Data
A fun experiment that turns data into music and abstract paintings.

- Goal
- Have some fun with data
- Stack
- JavaScript, Web Audio, Canvas
There's nothing serious or profound going on here. This was a fun project where I got to experiment with data and see what I could make it do. I ended up with two things. One makes abstract paintings out of data and the other plays it as music. Both run in your browser.
Painted by Data
I like abstract art, so I wanted to see if I could get data to paint some. Every line of data gets its own brush, and the brush moves around the canvas when the numbers move. When a number jumps, the brush flings some paint.
You pick the style. There's one that loops and drips like a Pollock, one that makes dots like Kusama, one that stacks soft blocks like Rothko, and a few more. You also pick the brush, the paint and how hard it presses. Then you hit play and watch Jupiter's moons make a mess.

If you end up with one you like, you can save it big enough to print, up to 24 by 18 inches.
Octave of Light
This one plays the data as music instead. Pick a data set, hit start, and it starts playing.
The fun part is messing with it while it plays. You can change the key and the scale, speed it up or slow it down, and switch the bass, the lead and the arpeggio on and off. There's reverb too, so turn it all the way up if you want it to sound huge. Everything changes right away, so you can hear what each thing does.
While it plays, every note gets drawn across the screen in a color. The colors aren't random. The light we can see covers about one octave, so each note gets the color of light that lines up with it. Switch on Drag to hear and you can drag across the picture to play any part of it again.

It comes with daylight in cities around the world, the night sky, the planets, Jupiter's moons, pulsars and exoplanet discoveries. You can also load your own CSV.
Where the data comes from
In case you're wondering, the planets use NASA JPL's orbit math, which is good from 1800 to 2050. The moon comes from the Astronomical Almanac, and Jupiter's moons come from a book called Astronomical Algorithms. The exoplanets are a copy of NASA's Exoplanet Archive from October 2026, all 6,451 of them.