Morse Code
Morse code, in seven languages, without leaving the graph
- string
Morse code is one of those things that never stops appearing in ARGs, because it survives being printed in an image, hummed in an audio clip, or blinked in a video frame. The MorseCode node turns that into a plain string-to-string conversion inside ComfyUI: text in, dots and dashes out, or the reverse. No bytes juggling, no converters needed - this is one of the friendliest nodes in the whole pack.
Under the hood it's a dictionary lookup, one table per language, built from the Wikipedia references for Morse code for non-Latin alphabets. The interesting part is the language coverage. You get Latin (the default), Russian/Cyrillic, Arabic, Hebrew, Greek, Korean (in the SKATS romanized form), and Japanese Wabun code. The node does some language-specific cleanup for you: Greek strips accents, Korean decomposes Hangul syllables, and Japanese gets normalized between hiragana and katakana. That's a lot of care for what is nominally a utility node, and it's the reason this pack earns its keep as an ARG lab.
Inputs:
- text - the message, plain string, multiline.
- mode - encode (text → morse) or decode (morse → text).
- language - the seven-way picker above.
- dot / dash (optional) - the symbols used to represent dots and dashes. Defaults to
.and-, but you can swap in/and\or anything else, which matters when a puzzle hides Morse using characters that aren't dots and dashes.
The output is converted_txt, a STRING. In encode mode letters are separated by single spaces and words by double spaces, so Hello World becomes .... . .-.. .-.. --- .-- --- .-. .-.. -... In decode mode the node splits on those spaces and maps codes back to letters.
Install via ComfyUI Manager (search "ComfyUI ARG Toolkit"), restart, done. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/AzelusLightvale/ComfyUI-ARG-Toolkit
Restart ComfyUI; the node lives under ARG Toolkit/Utilities/Converter. No model downloads. Worth noting the Morse implementation is the one self-contained piece of the pack - it doesn't depend on secretpy or cryptography, so it'll work even if the heavier dependencies fail to install.
Two things to expect. First, characters the chosen language doesn't have are silently skipped, so a stray @ in your Latin text just vanishes from the output. Second, the author flags this pack as an amateur project with tests that cover "most common use cases" only - Morse is well-trodden ground, so it behaves, but don't expect exotic edge cases like prosigns to round-trip. For a plain puzzle clue, it's exactly right.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| mode | COMBO | encode | 2 options: encode, decode |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |