NPM reveals a load of existing Morse code libraries, but
-
ecto/morse
does not support transmission signals, only.--.
notation -
dito for
jarofghosts/morse-stream
-
skattyadz/node-morse-code
is bound to Arduino/ events -
joeLepper/morse-maker
is 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