Melody Bounce

Maker / Scenes / Spinning hexagon

Scene

Spinning hexagon

A ball bounces inside a spinning hexagon with a gap in one wall. The spin gets faster with every hit, and the ball has to find its way out. Each bounce plays the next note of Minuet in G.

Make this video
58bounces before it escapes (variation 14)
25.8 suntil the escape
1 to 109bounces to escape across 40 variations

What happens

The hexagon is 430 pixels from center to corner in a 1080×1920 frame. It starts turning at 1.3 radians per second, and every bounce makes it turn 1% faster, up to 3 radians per second. Gravity pulls the ball down the whole time. Because the walls are moving, a wall swinging into the ball throws it off faster than it arrived, so the bounces get livelier as the spin builds.

One wall has a gap in the middle, 16% of the wall's length. The ball only gets out if it reaches the gap while moving outward. Sometimes that happens on the first bounce, sometimes after a hundred: across variations 1 to 40 it took 1 to 109 bounces, with a median of 37. When a variation ends too quickly, Shuffle in the maker skips it and only lands on runs where the ball stays in for at least 12 seconds.

This is the ball-in-a-spinning-hexagon setup that turned into an informal coding test for AI models in early 2025, when people asked chatbots to write it and compared whose ball behaved. Here the physics runs at 960 steps a second, so the ball never tunnels through a wall.

What you hear

Each wall hit plays the next note of the melody on a sampled upright piano, panned toward the side of the hit. A bass line from the Minuet comes in under it. When the ball gets out, a quick arpeggio runs up and a chord rings out.

Songs that fit

The ball hits a wall about twice a second, and every note lands on a bounce, so the original rhythm of a tune is replaced by the rhythm of the bounces. Melodies made of even, steady notes survive that best. Minuet in G is the default for that reason, and Ode to Joy works almost as well. Tunes that depend on a rhythm, like the short-short-long of Mozart's Symphony No. 40, are harder to recognise.

Make your own

Open Spinning hexagon in the maker, pick a song or upload a MIDI file, and download the MP4. Variation 14 is the one in the preview above. The same variation number always gives the same video, so you can share a link and get identical results.

Other scenes