MorseIambicKeyer
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(params: Object) |
Member Summary
Public Members | ||
public |
|
|
public |
iambicA: * |
Private Members | ||
private |
|
|
private |
_lastInput: * |
Method Summary
Private Methods | ||
private |
_ditOrDah(input: *): * |
Inherited Summary
From class MorseKeyer | ||
public |
decoder: * |
|
public |
ditLen: * |
|
public |
fditLen: * |
|
public |
keyCallback: * |
|
public |
player: * |
|
public |
timer: * |
|
private |
_state: {"playing": *} |
|
public |
start() Call this method when an initial key-press (or equivalent) is detected. |
|
public |
stop() This method can be called externally to stop the keyer but is also used internally when no key-press is detected. |
|
private |
_check() |
|
private |
_ditOrDah(input: *): * Translate key input into whether to play nothing, dit, or dah |
|
private |
Play a dit or dah sidetone. |
Public Constructors
public constructor(params: Object) source
Override:
MorseKeyer#constructorParams:
Name | Type | Attribute | Description |
params | Object | optional parameters. |
|
params.keyCallback | function(): number | A function which should return 0, 1, 2, or 3 from the vitual "paddle" depending if nothing, a dit, a dah or both is detected. This implementation will play dits if both keys are detected. |
|
params.decoder | MorseDecoder | Configured MorseDecoder. |
|
params.player | MorsePlayerWAA | Configured MorsePlayerWAA. |
|
params.iambicA | boolean |
|
if true then use iambic A mode, otherwise use iambic B mode (which sends an additional dit or dah when squeeze is released). |
Public Members
public iambicA: * source
Private Members
private _lastDitOrDah: * source
private _lastInput: * source
Private Methods
private _ditOrDah(input: *): * source
Translate key input into whether to play nothing, dit, or dah
Override:
MorseKeyer#_ditOrDahParams:
Name | Type | Attribute | Description |
input | * |
Return:
* |