Ant Escape · Media

SynthANTsizer

An Ant Escape board that plays music. Pick a song, press Play, and listen. It opens on a classic. How it works is below.

How it reads the board

The ant follows the contest’s own rules. It walks in from the left on the entry row. On each square it turns by the number there, the number goes up by one (3 goes back to 0), and it steps forward. The song ends when the ant walks off the board.

The music comes from the colors. A band of colored lanes spirals in from the top-left corner, and each lane is one channel with its own note. Whenever the ant lands on a square holding 1, that square’s note plays. Squares holding 0, 2 or 3 only steer the ant. Because every square counts up as the ant leaves it, a square that starts at 0 holds 1 after its first visit, so it plays the next time round. The bright squares on the board are the 1s, the notes waiting to play. The black lane in the middle is the drum.

The speed is in steps per second. Each song comes with its own, and you can change it.

Always 27 × 27

On this site the board is always 27 × 27, with the lanes in the same places: a band 9 lanes wide, spiraling in from the top-left corner. That will never change, so a song you make today will play the same way for good. The outer 8 lanes are channels 1 to 8. Channel 1 is the outermost lane and plays the lowest note. The innermost lane is black: it’s the drum.

Make your own song

By hand. Press Reset, then click any square to change it: each click moves it on to the next number, 0, 1, 2, 3, then back to 0. Change the notes for each channel, pick an instrument, and press Play to hear it. Download the song saves it as a song file, and Copy a share link puts the whole song in a link, so anyone can play it.

With a program. SynthANTsizer has no composer built in, on purpose. Write your own: a program that turns a tune into a board. Save the board in a song file, then press Open a song file in the toy to hear it.

We made the six songs in the toy with a program of our own. How it works stays secret until Ant Escape closes, because it would give away ways to search for contest grids. After the close, we’ll share it.

A song file is a small JSON file:

{ "format": "ant-tunes/1",
  "title": "My song",
  "board": "5: <27 rows of 27 digits, 0 to 3, separated by spaces>",
  "channels": ["Eb4", "F4", "G4", "Ab4", "Bb4", "C5", "Eb5", ""],
  "tempo": 38,
  "instrument": "synth" }

The six songs in the toy, as song files: Never Gonna Give You Up, Take On Me, Game of Thrones, Mission: Impossible, Tetris, Star Wars.