An interactive Morse code decision tree. Tap dot or dash to walk the binary tree and watch each combination resolve to a letter or number. Press space to commit the current letter, and the decoded message is displayed live. Tones are generated with the Web Audio API at the traditional 1:3 dot-to-dash ratio.
Live demo: https://cegme.github.io/morse-tree/
Open index.html in any modern browser, or visit the live demo. No build step, no dependencies.
- Dot (
.or,) — left branch - Dash (
-or/) — right branch - Space or Enter — finish the current letter, or insert a word gap when no letter is in progress
- Esc — clear everything
The on-screen buttons mirror the keyboard, and a Tones checkbox toggles the audio.
index.html is a single self-contained file (HTML + CSS + vanilla JS). The Morse tree is built at load time from a canonical letter-to-code map covering A–Z and 0–9, then walked one signal at a time as the user inputs dots and dashes. The full tree is rendered below the console for reference.
MIT