SOURCE / PINNED RELEASE
Made of little things.
Morse Tree
- Release
- 52c388d28ec3…
- Author-recorded commit
- fd8192a198f7…
- License
- LICENSE
- Author’s source reference
- nostr://npub1eg5pfnws6tg6rtp33tugpppqtv5u05crmf983qp438cdycwzngys0gxzcs/wss%3A%2F%2Fgit.napplet.soy%2F/n-6ab5aa84ba1
Archive hash verified: 9d22ca7f5a712965…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
# Morse Tree
Learn Morse code on its binary tree. Every dot goes left, every dash goes right,
and each letter sits at the node its code leads to: E is one step left, T one
step right, SOS walks down the left edge and back up the right.
Tooling notes for this soyLI project are in [docs/napplet-space.md](docs/napplet-space.md).
## How to play
- **Tap a letter** on the tree to hear its code. A spark runs down the branches
in time with the tones.
- **Key it yourself** on the one big straight key. A short press is a dot, a
long one a dash; while you hold, the meter fills and the node you would reach
is ringed. Leave a short silence and the letter is written to the tape in
capitals (the purple ring shows the countdown); a longer one ends the word.
A code no letter has gets a buzz and is dropped.
- The **timing strip** draws every press to scale against the ghost of its
ideal length, and **rhythm** scores your last 20 presses and gaps.
- **A house on a cliff and a boat** sit on the sea above the tree, unnamed;
those who know, know. The lamp on the boat flashes what you receive (a tapped letter,
the quiz) in step with the tones; the lamp on the house's balcony flashes what you
send: the key while you hold it, and the tape when you play it back.
- **▶** plays back everything on the tape, **⌫** deletes, **✕** clears.
- **🎧 Quiz** plays a random letter by sound only. Tap the letter or key it.
Streaks and your best streak are kept.
- **🚢 Light quiz** flashes a random letter from the boat, with no sound.
- The **wpm** chip cycles 5, 8, 12, 16 and 20 words per minute; **🔊** mutes.
Keyboard: hold Space as the key, Backspace deletes, any letter key plays that
letter, Shift+Q for the quiz, Shift+L for the light quiz, Escape to stop.
## Timing
Everything follows ITU-R M.1677-1 at the chosen speed, where one unit is
1200 / wpm ms: a dot is 1 unit and a dash 3; the gap inside a letter is 1,
between letters 3 and between words 7. The key splits at the midpoints, as a
receiver does: a press of 2 units or more is a dash, 2 units of silence end the
letter and 5 end the word. Morse has no upper limit on a dash, so a long hold
still counts as one. Presses under 15 ms are ignored as contact bounce.
The tree only shows nodes that carry a letter; the four empty codes take no
room. Small frames swap the tree for a big readout of the code you are keying
and the letter it reaches.
## Development
```bash
pnpm verify # guidance tests, Morse table tests, type-check, build
pnpm test:conformance
soyli dev
```
