Morse test
http://alexmost.github.io/morse/
try here -You can generate some input signals (dots and dashes), and depending on their duration, this app will transform dots and dashes in letters and combine them in words.
This project aims to highlight the power of FRP approach for working with async logic (Rx.js lib). At the very low level we have streams from DOM events (keyup, keydown, mouseup, mousedown), which are composed to receive more meaningful and more valuable streams such as dots, dashes and spaces, and those are also used to get letters and words. As a result, at the very high level we have streams with words and letters that can be used in UI. We can work with letters and words streams as a simple collections and even more - build more logic on top of them (Try to type SOS or CAT). For deeper details just look at the source =)
Morse logic
- Letters are sequences of dots, dashes and spaces between them.
- Space between letters are equal nearly 3 dots.
- Space between words equals nearly 7 dots.