Music Box Gift
Place pins to make a short music box tune and give it as one link. The tune lives inside the link only: no sign-up, nothing stored on a server.
Press a pin to switch it on or off. Move between cells with the arrow keys and press with Space or Enter.
- Card messageHave a lovely day
- Pins8
- Columns16
- SpeedMedium (100 bpm)
As text
1 C4, 2 rest, 3 E4, 4 rest, 5 A4, 6 rest, 7 C5, 8 rest, 9 A4, 10 rest, 11 E4, 12 rest, 13 C4+A4, 14 rest, 15 rest, 16 rest
The same number always gives the same tune.
Going down to 16 columns erases the pins from column 17 on.
Kept tunes
No kept tunes yet.
Kept tunes are stored in this browser only. Only tunes you press Keep on are saved, and you can delete them any time.
This tool only makes a tune and passes it on as a link. The tune is not stored on a server, and anyone with the link can open it. If you copy someone else's melody onto the pins, check the copyright first.
How it works
- Make a tune
- Press pins on the board to switch them on or off. Rows are pitch (lowest at the bottom) and columns are time. Load an example or a random tune and change it. Several pins in one column play as a chord.
- Gift link
- With at least one pin you get a link. Copy it into any messenger; the person who opens it sees a card, presses the wind-up button and hears the tune. Sound starts only after that press.
- Card image
- Save card image stores a PNG with the card message and the pin picture on your device. An image has no sound, so send it together with the link.
- Keep and reuse
- Keep this tune stores up to 8 tunes in this browser. Next anniversary you can load last year's tune, change it and send it again.
The tune lives inside the link
- The tune is stored in the part of the address after the # sign, not on a server. Browsers do not send that part to a server, so the tune never reaches or stays on this service.
- A 16-column tune is 26 characters and a 32-column tune is 47. They hold the column count, speed, sound, card message number and the 8 pins of every column. A one-byte checksum (CRC-8) ends the data, so a link that was cut off or changed by even one character is refused with an explanation.
- A link carries no free text, only the number of one of 8 card messages. A sender cannot make arbitrary words appear on the receiver's screen. The v1 in front of the data is a format version, so future formats can be told apart from old links.
- The sound is synthesized in the browser on the spot, with no recordings and no samples of existing songs. Pitch uses equal temperament with A4 at 440 Hz, the standard tuning pitch of ISO 16.
- A random tune is computed from its tune number. The same number and the same column count give the same tune on every device. The calculation uses neither the clock nor the device's random numbers.
- Anyone who knows the link can listen to the tune. Do not put anything secret in it.
Why random pins still sound fine
The rows are C, D, E, G, A and then C, D, E an octave higher: notes of a five-note (pentatonic) scale. That scale has no neighbouring notes a semitone apart, which is what makes notes clash, so almost any pattern sounds reasonably pleasant. For something richer, try another tune number or edit the pins by hand.
Pin rows and notes
The bottom row is the lowest note. Frequency is 440 x 2^((note number - 69) / 12), shown to two decimals.
| Row | Solfege | Note name | Frequency (Hz) |
|---|---|---|---|
| 1 | Do | C4 | 261.63 |
| 2 | Re | D4 | 293.66 |
| 3 | Mi | E4 | 329.63 |
| 4 | Sol | G4 | 392.00 |
| 5 | La | A4 | 440.00 |
| 6 | High Do | C5 | 523.25 |
| 7 | High Re | D5 | 587.33 |
| 8 | High Mi | E5 | 659.26 |
Eight example tunes
The examples are short phrases written for this service. They are not based on any existing song.
- Morning light (16 columns, 4.8 s)
- Raindrops (16 columns, 6.4 s)
- Little garden (16 columns, 4.0 s)
- One star (16 columns, 6.4 s)
- Before sleep (32 columns, 16.0 s)
- Little bells (16 columns, 3.2 s)
- A stroll (16 columns, 4.8 s)
- Small cheer (16 columns, 4.0 s)
If you hear nothing
- Check the silent switch and the media volume of your device. Some devices keep web sound silent in silent mode.
- Check that Mute sound on this page is not pressed.
- Some in-app browsers cannot play sound. Try opening the link in your default browser.
- Even without sound, As text lists the tune column by column, and the pins follow along while it plays.
Frequently asked questions
- How do I send a music box tune as a link?
- Place at least one pin and a gift link appears. Press Copy link and paste it into a messenger or text. The person who opens it presses the wind-up button and hears the tune.
- Is my tune stored on a server?
- No. The tune sits in the part of the address after the # sign, and browsers do not send that part to a server. Anyone who has the link can listen to it, so do not put anything secret in a tune.
- I opened the link but hear nothing.
- Sound starts only after the play button is pressed. Check your device's silent switch and media volume and the Mute sound button on the page, and open the link in your default browser if it is an in-app browser. The tune is also written out as text.
- Will random pins sound good?
- The rows are C, D, E, G, A and then C, D, E an octave up. That five-note scale has no neighbouring notes a semitone apart, so almost any pattern sounds reasonably pleasant.
- Can I copy a song I know onto the pins?
- The service does not store or publish tunes; they travel only inside links. If you copy someone else's melody, check the copyright yourself. The eight example tunes are short phrases written for this service.
- How do I save the card as an image?
- After making a tune, press Save card image to store a PNG with the card message and the pin picture on your device. An image has no sound, so send it together with the link.