Home Reference Source

References

summary
public

Class to create sine-wave samples of standard CW Morse.

public

Class to create the on/off timings needed by e.g.

public

Class to convert from timings to Morse code.

public

Class to convert from timings to Morse code.

public
public

The Morse keyer tests for input on a timer, plays the appropriate tone and passes the data to a decoder.

public

Extension of the MorseListener class which automatically adapts to the dominant frequency.

public

A class to 'listen' for Morse code from the microphone or an audio file, filter the sound and pass timings to a decoder to convert to text.

public

Class for conveniently translating to and from Morse code.

public

Web browser sound player using Web Audio API.

public

Web browser sound player using Web Audio API.

public

Web browser sound player for older browsers, using XAudioJS by Grant Galitz (https://github.com/taisel/XAudioJS).

public

F getDataURI(data: number[], type: string): string

public

F getData(data: number[], sampleRate: number, bitsPerSample: number): number[]

Convert PCM data to WAV file data.

public
public

F charSpace(wpm: number, fwpm: number): integer

Get the character-space in ms

public

F dahLength(wpm: number): integer

Get the dah length in ms

public

F ditLength(wpm: number): integer

Get the dit length in ms

public

F ditSpace(wpm: number): integer

Get the dit space in ms

public

F fditLength(wpm: *, fwpm: *): integer

Get the Farnsworth dit length in ms for a given WPM and Farnsworth WPM.

public

F fwpm(wpm: *, r: *): *

Get the Farnsworth WPM for a given WPM and ratio

public

F ratio(wpm: number, fwpm: number): number

Get the dit length ratio for a given WPM and Farnsworth WPM

public

F wordSpace(wpm: number, fwpm: number): integer

Get the word-space in ms

public

F wpm(ditLen: *): number

Get the WPM for a given dit length in ms

public

Determine whether a string is most likely morse code.

public

F morse2text(morse: string, useProsigns: boolean): {message: string, morse: string, hasError: boolean}

Translate morse to text.

public

F text2ditdah(text: string, useProsigns: boolean): string

Translate text to morse in 'Di-di-dah dah' form.

public

F text2morse(text: string, useProsigns: boolean): {message: string, morse: string, hasError: boolean}

Translate text to morse in '..- .. / --' form.