Skip to main content

Koch method Morse code training program with Word Mode, Callsign Mode, and Random Character Mode

Project description

Morse code audio generation and training program, with Word Mode, Callsign Mode, and Random Character Mode.

Installation

$ pip install koch_trainer

Requires:

Tested with Python 2.7.9 on Mac OS X.

Note that to install the PyAudio dependency on Mac OS X, you’ll need to first install portaudio with Homebrew:

$ brew install portaudio

Examples

Play back strings in Morse by passing them as command line arguments:

$ koch_trainer hello world

Save the generated code to a WAV file:

$ koch_trainer -f hello.wav hello world

Change the code speed from the default 20 WPM to 30 WPM:

$ koch_trainer --effective-speed 30 hello world

And the tone frequency from the default 770 Hz to 440 Hz:

$ koch_trainer --hertz 440 hello world

Changing the level will add or remove characters from the training pool. The following will result in a default of 100 characters output using the following characters as a base: K·M·R·S·U·A·P·T·L·O·W·I:

$ koch_trainer --level 12 --effective-speed 7 --character-speed 20

You can also specify word mode by passing the word-mode flag. Settings exist to customize the experience. The following will result in 20 words being output with character counts ranging from 2 to 6 characters using the same 12 characters as above. Changing the level will change the characters available:

$ koch_trainer --level 12 --effective-speed 7 --character-speed 20 --word-mode --word-count 20 --word-char-min 2 --word-char-max 6

A callsign practice mode is also available via the following:

$ koch_trainer --effective-speed 7 --character-speed 20 --callsign-mode --callsign-count 20

Get help with CLI options:

$ koch_trainer -h

See also

Contributing

Get the source and report any bugs on Github:

https://github.com/rguisewite/koch_trainer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koch_trainer-0.0.5.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

koch_trainer-0.0.5-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file koch_trainer-0.0.5.tar.gz.

File metadata

  • Download URL: koch_trainer-0.0.5.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for koch_trainer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 248ad8c7ff7b104ed428ac7bfdca7a35dd7879debe309b1da9370b8d756d181c
MD5 72d64b7607020d5ab32eceb5fc598ec6
BLAKE2b-256 769540eaaf5935e64ceb31b3a515b8bcf426ecd47cc0c680a8729d371c75a051

See more details on using hashes here.

File details

Details for the file koch_trainer-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: koch_trainer-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for koch_trainer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0af81751d81916cdc0c8c52d038550bd090dfc9624b40779e8e63003690d0245
MD5 17634269286ab295479006876b0eb7c6
BLAKE2b-256 022ebf5eae930d40356c7c0bb1ded0ed476bafea4c3e97362afa1b3eec0bea36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page