Morse code: Difference between revisions
→{{header|Wren}}: Added a further remark to preamble.
(Added Wren) |
(→{{header|Wren}}: Added a further remark to preamble.) |
||
Line 4,401:
{{libheader|Wren-sound}}
As Wren-cli doesn't have any built-in audio support, we instead build a .wav file which can then be played using a utility such as rhythmbox or SoX, having first printed the morse code to the terminal for comparison.
Any characters which do not appear in the Morse alphabet are simply ignored.
<lang ecmascript>import "/str" for Str
import "/sound" for Wav
|