Skip to content

cegme/morse-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

morse-tree

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/

Usage

Open index.html in any modern browser, or visit the live demo. No build step, no dependencies.

Controls

  • 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.

Structure

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.

License

MIT

About

Interactive Morse code decision tree. Dots and dashes walk a binary tree to letters and numbers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages