package mkaudio

  1. Overview
  2. Docs
CLI program for generating audio files

Install

Dune Dependency

Authors

Maintainers

Sources

mkaudio.1.1.1.tar.gz
sha256=09a3aac0eed40ae2ab7ecd1e22907c9f9f5407a79ed7d916caaa7efff4879d0b
md5=b7fbabee3d071a2c24861f3383e6b5ee

Description

Generate noise, basic waveforms and synthesized drum loops with configurable durations, tempos and sample rates.

Published: 19 Oct 2020

README

mkaudio

CLI program for generating audio files

Supported commands:

  • saw, sine, square, triangle

Generate a waveform with a specified duration and frequency. Duration can be specified in hours, minutes or seconds, or as a number of beats and a tempo in BPM. For example:

Generate 5 seconds of saw wave:

mkaudio saw --frequency 440 --duration 5s sound.wav

Generate a sine wave lasting 4 beats at 120bpm (i.e. 2 seconds):

mkaudio sine --frequency 440 --beats 4 --tempo 120 sound.wav

Generate a square wave lasting half a minute:

mkaudio square --frequency 440 --duration 0.5m sound.wav
  • white-noise

Duration is specified in the same way as for waveforms, e.g. to generate 10 seconds of white noise:

mkaudio white-noise --duration 10s sound.wav
  • beat

Generate a simple beat from kick, snare and hi-hat patterns. Patterns are specified as strings; each character which is 1 or x corresponds to a drum hit; any other character corresponds to a lack of drum hit. Each character represents one sixteenth note at the specified tempo. The --repeats parameter allows generation of longer beats without typing in long repetitive patterns.

8 beats of eighth note hihats:

mkaudio beat --hihat 10 --repeats 16 --tempo 120 sound.wav

A simple syncopated beat lasting 4 beats:

mkaudio beat \
    --kick 1001000100100000 \
    --snare 0000100000001000 \
    --hihat 1111111111111111 \
    --tempo 120 sound.wav

For more information, and all optional parameters, see mkaudio --help and mkaudio <command> --help.

Dependencies (5)

  1. result
  2. mm >= "0.6.0" & < "0.7.0"
  3. cmdliner
  4. dune >= "2.0"
  5. ocaml

Dev Dependencies (1)

  1. ounit with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.