Morse:
Filter:
Morse/Classes (extension) | HistoricalCommunication

Morse
ExtensionExtension

create time patterns based on Morse code.

Description

Morse looks dot-dash patterns (in MorseDict) for a given character or string and converts them to times for playback. Based on the Morse class by Hairi Vogel.

http://en.wikipedia.org/wiki/Morse_Code, based on ITU recommendation ITU-R M.1677, found here: http://www.godfreydykes.info/international\ morse\ code.pdf

Class Methods

.timesFor

get the times for a single character or symbol.

Arguments:

char

a single char or one of the supported special symbols.

Returns:

a list of dot-dash time values and the pauses in between them.

.word

get the time lists for a word.

Arguments:

word

a string without blank space

Returns:

the time values for the chars in the word.

.new

get the time lists for a word.

Arguments:

text

the text to be encoded to Morse times. default = "Hello Morse".

Returns:

the time values for the text

.signs

convert a text to dot-dash signs.

Arguments:

text

the text to be encoded to Morse dot-dash signs. default = "Hello Morse"

Returns:

the time values for the text

.dot

get and set the time for a dot - default is 0.1

.dash

get and set the time for a dash - default is 0.3

.intra

get and set pause time within a char - default is 0.1

.short

get and set pause time between chars - default is 0.3

.medium

get and set pause time between words - default is 0.7

.verbose

get and set flag whether to post debug messages