celso / inkmorse

Ink Morse Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ink Morse Component

This is an Ink based javascript module that plays Morse Code using WebAudio.

Usage:

Ink.requireModules(['Ink.Ext.Morse_1'],function( MorseObject ){
    var Morse=new MorseObject;

    // optional configuration
    Morse.wpm = 20;
    Morse.freq = 1300;
    Morse.volume = 1;
    Morse.sample_rate = 44100;

    // use .prepare() before .play() if you change the config
    Morse.prepare();
    Morse.play("HELLO WORLD");
}

Here's a demo

Here's a very good decoder for iOS too, if you need one.

Want to create your own Ink module? Try this

This is module is known to work with modern browsers with WebAudio support, tested with Safari, Firefox and Chrome.

About

Ink Morse Component

License:MIT License


Languages

Language:JavaScript 100.0%