NPM reveals a load of existing Morse code libraries, but
-
ecto/morsedoes not support transmission signals, only.--.notation -
dito for
jarofghosts/morse-stream -
skattyadz/node-morse-codeis bound to Arduino/ events -
joeLepper/morse-makeris based on keyboard events, and a flashing PI -
ryanseys/tessel-morse… well, here i stopped and started coding
Morse code is a two way transformation from text to dots and spaces notation.
The letter 'A' e.g. is represented as .-, and vice versa.
But if you want to transmit this information, be it via air
(sound or light), copper (electricity), or any other medium,
you need a pulse and a signal/ no signal.
At its heart, Morse code is a digital signal (on or off).
on +---+ +-----------+
| | | | (1)
off -+ +---+ +-----------
pulse ---+---+---+---+---+---+---+---+---> t
-
Transmission signal for letter 'A'
-
Decoding
-
Make implementation indepent of type String (support streams e.a.)
-
Maybe support Samuel Morse’s original version, just to allow pluggable tables