Morse Sound Trainer
Practice morse code by pressing and holding the space bar to create dot and dash sounds
Readme
What is Morse Code?
Morse code is a method of encoding text characters using sequences of dots (short signals) and dashes (long signals). Invented by Samuel Morse and Alfred Vail in the 1830s for use with the telegraph, it became one of the most important communication systems in history. Each letter, number, and punctuation mark is represented by a unique combination of these two signals.
The timing in Morse code follows specific conventions: a dash is three times the length of a dot, the space between parts of the same letter equals one dot length, the space between letters equals three dot lengths, and the space between words equals seven dot lengths. This standardized timing allows trained operators to communicate efficiently across vast distances.
Why Learn Morse Code?
Despite being over 180 years old, Morse code remains relevant today. It's used in amateur radio, aviation, emergency signaling, and accessibility technology. Learning Morse code develops pattern recognition skills and provides a reliable backup communication method when modern technology fails. Many people also find it a rewarding mental exercise and a connection to communication history.
Tool Description
The Morse Sound Trainer is an interactive practice tool that helps you learn Morse code through hands-on audio feedback. By pressing and holding the spacebar, you generate tones - short presses create dots, long presses create dashes. The tool provides real-time audio feedback and automatically decodes your input into readable text, allowing you to practice sending Morse code messages and immediately see the results.
How It Works
- Press and hold the spacebar to generate a tone
- Short press (under the threshold) registers as a dot (.)
- Long press (over the threshold) registers as a dash (-)
- The tool decodes your input in real-time, showing the corresponding letters and words
- Use the letter space and word separator buttons to structure your message, or enable auto-spacing
Features
- Real-time audio feedback with adjustable volume and frequency (300-1200 Hz)
- Customizable timing for dot and dash duration thresholds
- Auto-spacing mode that automatically adds letter and word separators based on pause duration
Timing Settings
| Setting | Description | Default |
|---|---|---|
| Dot Duration | Maximum press time for a dot | 60 ms |
| Dash Duration | Minimum press time for a dash | 180 ms |
| Letter Pause | Delay before auto-inserting letter space | 1000 ms |
| Word Pause | Delay before auto-inserting word separator | 2000 ms |
Morse Code Reference
| Letter | Code | Letter | Code | Number | Code |
|---|---|---|---|---|---|
| A | .- | N | -. | 1 | .---- |
| B | -... | O | --- | 2 | ..--- |
| C | -.-. | P | .--. | 3 | ...-- |
| D | -.. | Q | --.- | 4 | ....- |
| E | . | R | .-. | 5 | ..... |
| F | ..-. | S | ... | 6 | -.... |
| G | --. | T | - | 7 | --... |
| H | .... | U | ..- | 8 | ---.. |
| I | .. | V | ...- | 9 | ----. |
| J | .--- | W | .-- | 0 | ----- |
| K | -.- | X | -..- | ||
| L | .-.. | Y | -.-- | ||
| M | -- | Z | --.. |