In 60 seconds. Signature Tune is paper that plays its own song. Type a name and a message, print the card, and whoever scans it hears a melody made from your own words, one note for each letter.

  • Try it: open the card for Michael and press Tap to play. It takes 35 seconds.
  • Who it is for: anyone who wants to give a personal gift without knowing how to compose music or design stationery, for family, a partner, a friend or a teacher. A birthday, a thank you or a note to someone far away. It is free, needs no account and no app, and no server stores the message.
  • Why Frankenstein: a letter cipher, a browser music box, a printed card, a scan code and a link that stores everything, stitched into one object with no server.
  • Kiro: steering first and spec driven, in 31 recorded Kiro CLI sessions. 6 steering files, requirements R1 to R20, correctness properties P1 to P12, 3 hooks, 2 of which logged 551 runs (391 Public Copy Check, 160 Correctness Check; the third is an agent review that writes no log), and 243 passing tests.

What if a piece of paper could carry its own song?

A store bought musical card plays the same recording for everyone. Signature Tune builds the song from your own words: each letter becomes a note, and A to Z can be read back from the notes alone.

Inspiration

Every name already has a rhythm when you say it. I wanted to turn that into something you could hold: a card that looks like a royal invitation and plays its own short song when someone opens it. Ordinary greetings are easy to send and easy to forget. A birthday wish, a thank you or a simple I love you should be something a person can hold, scan, hear and keep. The fun part was never just turning a name into notes. It was giving that melody a physical form that another person can pick up, scan and play.

What it does

  • I type a name and hear the melody that belongs to it.
  • I add an optional message and a sender line.
  • I print a card: a gold framed invitation with a wax seal and a scan code.
  • The recipient scans the card, the player opens in their browser, and they tap Play.
  • They hear the signature melody, and then the message appears one character at a time, each character landing with its own note.
  • There is no account, no installation and no message database. The greeting lives in the card link.
  • It does not depend on sound. Reveal without sound shows the message with no audio, the finished message is announced to screen readers, there is a skip link, and keyboard focus and colour contrast have their own tests.

The Frankenstein idea

Signature Tune joins five small machines into one working object:

  1. A reversible letter to note cipher.
  2. A browser music box.
  3. A printable stationery card.
  4. A machine readable scan code.
  5. A web link that carries the card data.

These five parts do not normally belong together. Paper is silent and never changes; a song needs a speaker and a clock. A cipher is for hiding text; a greeting is meant to be read. A web app normally needs a server; this one has none. Stitched together they do something none of them does alone: a sheet of paper carries its own song. The scan code holds the whole greeting, the browser turns each letter back into a note, and nothing is stored anywhere except the card. On the judges page the five parts are joined by a gilded thread, which is the Frankenstein seam in the palace look.

Every letter maps to a note the same way every time. The A to Z cipher is reversible: decodeNotes recovers A to Z text from the pitch and duration alone, with no stored characters (property P12). The complete greeting is always kept exactly in the card link and in the song's melody events (property P10). Other writing systems and emoji still make notes, but their characters cannot always be read back from sound alone. The chords and gentle beat add richness without changing the encoded greeting (property P11). You can try the cipher in the How it works panel on the card maker.

How I built it

  • A static website with no backend and no build step: plain HTML, plain CSS and native ES modules, SVG for the card, the melody strip and the diagrams, and the Web Audio API for sound.
  • The cipher and the card codec are pure modules with no DOM, no audio and no network, so they carry the correctness properties and are the main target of the property tests.
  • The song is synthesized in code. A pure arranger turns a card into a short song (an intro, the name as a motif, the message as a verse, a soft sender line, a refrain and a cadence), and a pure synthesis module renders it. Only the melody carries the words.
  • The same arranger and voices run in an offline Node renderer, so the sample arrangements in media/ sound the same as playing the card in the browser. There are no recorded samples.

How I used Kiro

I built Signature Tune steering first and spec driven, in 31 recorded Kiro CLI sessions on December 4 (sessions 1 to 24, a few run in two parts). Every session id is listed in KIRO.md and the work of each is logged in evidence/development-log.md.

  • Steering. Six files in .kiro/steering set the rules before any code: product.md, tech.md (static site, no framework, no backend, the Node built in test runner), structure.md, brand.md (the Versailles look), privacy.md (local only, text only rendering, honest privacy wording) and copy.md (the writing standards). They were always in context, so every session worked to the same rules. The brand file is why the app looks like a palace invitation and nothing like an arcade.
  • Spec. .kiro/specs/signature-tune holds requirements.md with EARS acceptance criteria R1 to R20, design.md with the cipher, the data model, the song form and correctness properties P1 to P12, tasks.md with each task tied to requirements, and requirements-analysis.md, where Kiro walked the requirements for ambiguity and conflict and gave each finding a testable form. Each session ticked a task only after its checks passed.
  • Hooks. Three hooks in .kiro/hooks ran on their own. Correctness Check runs the fast correctness tests (npm run test:fast) when a source or test file is saved. Public Copy Check runs scripts/check-public-copy.mjs when a public file is saved; it flags dashes, visible escaped line breaks, colours outside the palette, author metadata that is not mine and misuse of the scan code trademark. Spec Alignment Review is an agent hook that reviews each turn's changes against the spec and the steering. Runs are recorded in evidence/hook-runs.log.
  • Property tests. npm test reports 243 tests passing and 0 failing. The serialization, capacity, decoding, playback, full song and note decoding properties each run 200 seeded cases plus fixed regression cases, and each prints its seed so a run can be repeated exactly. Fresh seed runs found a name made only of spaces, an input no hand written case tried; it was a generator bug, fixed so generated names hold at least one non space character.
  • Traceability. evidence/traceability.md links each requirement, R1 to R20, to the code and the tests that prove it, and CI runs the full suite on every push.
  • Spec versus vibe. The cipher, the card codec and the player were built against the spec: each task names its requirements and was ticked only after its checks passed. The look and the two sound passes had no acceptance criteria a test could check, so they were held to the brand steering file and to measurements of the rendered audio instead.
  • What did not work at first. The Correctness Check hook's file matcher was anchored wrong, so early saves did not trigger it. I fixed the matcher, and the hook log now shows 160 Correctness Check runs beside 391 Public Copy Check runs. A fresh test seed also exposed a faulty test generator, not an app bug, and the generator was fixed.

Challenges I ran into

  • Keeping the A to Z cipher reversible from the notes alone while still letting other writing systems and emoji make a melody. The original text is always kept in the card link, so nothing is lost even when the notes alone cannot be read back.
  • Making the song sound finished without recorded samples. Two sound passes used measurements of the render (peak level, clipping, clicks, spectrum and section dynamics) to retune the voices and the arrangement.
  • Fitting a full greeting into a scan code with room to spare, and rejecting anything too long with a friendly message before a card is drawn.
  • A green CI that ran nothing. Until session 14 the workflow passed a quoted test glob that the Node 20 runner did not expand, and a pipe hid the failure. Now it runs on Node 22 with an explicit file list, set -o pipefail and a guard that fails the job when zero tests run.
  • Card width tests that passed while real capitals still overflowed, because they used the same guessed letter widths as the code. Session 19 switched them to real measured font widths.

Accomplishments that I'm proud of

  • A piece of paper that plays its own song, start to finish, with no server.
  • Measurable correctness: twelve numbered properties with seeded, repeatable tests, and 243 tests passing.
  • A warm, calm look that reads as a royal invitation and a music box.

What I learned

Writing the correctness properties before the code made the hard parts (reversibility, safe decoding of untrusted links and the scan code capacity gate) concrete and testable, and kept later changes honest. I also learned to distrust a green check until I had seen it run real tests.

What's next for Signature Tune

Shipped: the card maker, the printable card with its scan code, the player that rebuilds the greeting from the link, and the 243 tests. Planned: scanning a printed card on two phones and confirming playback on an iPhone in silent mode. Those device checks have not been done yet.

Privacy

A card holds only a name, an optional message and an optional sender. Everything happens in the browser. The app makes no network requests of its own at runtime and loads only its own files. The greeting is stored in the card link after the "#", which an ordinary page request does not send to a web server. That is not encryption: anyone with the link can open it, so the app tells senders not to include sensitive information.

Open source parts

  • Scan code generator: the MIT licensed JavaScript generator by Kazuhiko Arase, vendored under vendor/ with its copyright and licence intact.
  • Display font: Cormorant Garamond under the SIL Open Font Licence 1.1, self hosted.
  • All audio is synthesized in code.

Testing instructions for judges

  1. Open the demo card: https://alenza.dev/signature-tune/?v=1a87b24#v1.WyJNaWNoYWVsIFNtaXRoIiwiSSBsb3ZlIHlvdSBNaWNoYWVsIFNtaXRoLCB5b3UgYXJlIG15IGFsbCIsIlNhcmFoIl0 and tap Tap to play. The song runs about 35 seconds and the message appears one character at a time. Reveal without sound shows it with no audio.
  2. Open https://alenza.dev/signature-tune/?v=1a87b24, type a name, press Hear your tune, add a message and a sender, and press Print your card. Print preview shows one landscape card with the scan code.
  3. No phone needed: press Copy link, open the link in a new tab and press Tap to play. The scan code holds that same link. You can also scan the on screen code with a phone camera. A phone scan of a printed card has not been tested yet.
  4. Open How it works on the maker to see LOVE as four notes and the letters read back from the notes.
  5. Run the tests: git clone https://github.com/ALENZACODES/signature-tune.git && cd signature-tune && npm test (Node 22, no install step; 243 passing).
  6. The judges page has the five part diagram, the correctness properties and the Kiro evidence: https://alenza.dev/signature-tune/judges.html?v=1a87b24

No login is needed.

Made by John Khan in Toronto, Ontario. Built with Kiro.

Blog post: https://dev.to/alenzacodes/signature-tune-a-paper-card-that-plays-a-song-made-from-your-own-words-46l3

Built With

Share this project:

Updates

Submission history