Coder Social home page Coder Social logo

morsewav.py's Introduction

morsewav.py

A morse code wav file generator written in python by Cary Dreelan VK5CD

Improvements:

  • Adding key click filter (ramp amplitude up/down)
  • Cached sinusodial waves for faster performance
  • More command line options:
    • Specify sample rate
    • Frequency of morse signal
    • Amplitude of signal
    • Words per minute
    • Letter spacing as percentage (allowing Farnsworth style)

Command line options

  • -o outfile # name/path of file to create
  • -f morse_freq_hz # Frequency in hz of tones to generate, default 850 Hz
  • -s sample_rate # of wav file, default 22050 Hz
  • -w words_per_minute # default is 25 wpm
  • -a amplitude # 0 (silence) to 32767 (loudest), default 30000
  • -l letter spacing % # Default is 100%, increase for Farnsworth style
  • -v verbose # Output details about what is to be generated, including morse representation
  • [ words ] # Actual words to be converted, either as cmd line options, or can be stdin

Examples

Generate 'hello_world.wav' test file with default parameters in current directory:

./morsewav.py -o hello_world.wav hello world

Convert a book text file into a morse wav file with additional letter spacing (eg. Farnsworth style)

cat book.txt | ./morsewav.py -o book.wav -l 200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.