# 莫尔斯电报振荡器 — OOK 通断键控

交互式莫尔斯电报振荡器。输入任意文本，它会被编码为严格遵循 1:3:7 时序的点（·）与划（—），实时显示通断键控（OOK）载波波形与频谱图，并可播放真实电报声。调节 WPM（每分钟字数）与载波频率。

> 标准页面: https://elysiatools.com/zh/visualizations/morse-code-oscillator

- **分类:** Signal Processing

## 概述

Interactive Morse code oscillator that turns typed text into the strict 1:3:7 international Morse timing and plays it as real telegraph sound — an active signal-generation workshop complementing the passive spectrogram-analyzer and the abstract z-transform. Each character encodes to dots (·) and dashes (—) with timing measured in one unit (the dot length): dot=1, dash=3, intra-character gap=1, inter-character gap=3, inter-word gap=7. Speed is quoted in Words Per Minute (WPM) via the standard reference word PARIS (=50 units including its trailing word gap), so one unit = 1200/WPM ms (at 12 WPM a dot is 100 ms, at 24 WPM it is 50 ms). The output is On-Off Keying (OOK, the one-bit case of Amplitude-Shift Keying ASK): a pure carrier sine at f₀ (300–1000 Hz, classic 600 Hz side-tone) switched on during dots/dashes and off in gaps, s(t)=A·gate(t)·sin(2πf₀t), with 5 ms raised-cosine ramps to suppress clicks. Three visualization panels: (1) Keying Timeline showing dot/dash blocks (cyan) and the three gap lengths shaded amber (1/3/7 units), with a moving play cursor. (2) OOK Carrier Waveform showing the gated sine over the first ~12 units with envelope shading marking key-down intervals. (3) Spectrogram (self-implemented STFT with Hann window) where each dot/dash lights up as a horizontal bar at f₀ and the spacing reveals the Morse rhythm, with the carrier line marked. Adjustable parameters: WPM (5–30), carrier frequency f₀ (300–1000 Hz), volume (0–1). Six scenario presets: PARIS (the WPM reference word), SOS (· · · — — — · · · universal distress, sent as one continuous rhythm), Fast (28 WPM contest speed), Slow (6 WPM easy to copy by ear), High Tone (1000 Hz piercing), Low Tone (350 Hz mellow). Real-time statistics: unit duration, dot/dash/letter-gap durations in ms, total message duration, and symbol count. Educational content covers the 1:3:7 timing standard and PARIS WPM calibration, On-Off Keying as the simplest modulation underlying all digital communication, and applications (Samuel Morse & Alfred Vail 1844 'What hath God wrought', transatlantic cables, ship-to-shore, amateur radio, aviator NDB beacons, the Titanic SOS, and why a narrow-band tone still punches through noise). Multi-language support (zh, en, es, fr, de, ru, pt).

## 相关内容

- [零级反应 - Zero-Order Reaction](https://elysiatools.com/zh/visualizations/zero-order-reaction): 零级反应动力学和浓度随时间变化的交互式可视化
- [一级反应 - First-Order Reaction](https://elysiatools.com/zh/visualizations/first-order-reaction): 一级反应动力学和指数浓度衰减的交互式可视化
- [二级反应 - Second-Order Reaction](https://elysiatools.com/zh/visualizations/second-order-reaction): 二级反应动力学和双分子碰撞动力学的交互式可视化
- [阿伦尼乌斯方程 - Arrhenius Equation](https://elysiatools.com/zh/visualizations/arrhenius-equation): 温度对反应速率影响的交互式可视化 - 探索活化能、指数因子和速率常数的关系
- [可逆反应 - Reversible Reaction](https://elysiatools.com/zh/visualizations/reversible-reaction): A ⇌ B 可逆反应动力学的交互式可视化 - 探索正逆反应速率、平衡常数和浓度随时间的变化
- [连续反应 - Consecutive Reaction](https://elysiatools.com/zh/visualizations/consecutive-reaction): A → B → C 连续反应动力学的交互式可视化 - 探索中间物浓度峰值、决速步和所有物种的完整演化
- [链式反应 - Chain Reaction](https://elysiatools.com/zh/visualizations/chain-reaction): 自由基链式反应聚合的交互式可视化 - 探索引发、增长、终止步骤，链增长动画和分子量分布
- [勒夏特列原理 - Le Chatelier's Principle](https://elysiatools.com/zh/visualizations/le-chateliers-principle): 勒夏特列原理的交互式可视化 - 探索浓度、压强和温度变化如何影响化学平衡，配合分子动力学动画展示平衡移动过程
