Skip to main content

Programmatic music synthesis

Project description

# chaudio

chaudio is a python module to programmatically create music.

chaudio contains audio processing utilities for converting audio, and applying effects to already generated songs

Licensed under the GNU GPLv3

[Installation Guide](http://chaudio.readthedocs.io/en/latest/installing.html)

[Getting Started Guide](http://chaudio.readthedocs.io/en/latest/getting_started.html)

## Installing

[Installation Guide](http://chaudio.readthedocs.io/en/latest/installing.html)

It is available on pypi, so run pip3 install chaudio.

Python3 is the officially supported language, but an effort is made to be compatable with python2, so you can try pip install chaudio. Please open an [issue](https://github.com/chemicaldevelopment/chaudio/issues) if either of these fails.

### From Source

Clone this repo, and then run python3 setup.py install (or python setup.py install)

## Documentation

For documentation, usage examples, visit our [readthedocs page](http://chaudio.readthedocs.io).

## Usage

[Getting Started Guide](http://chaudio.readthedocs.io/en/latest/getting_started.html)

### Examples

Located in examples/, multiple example use cases of chaudio are shown.

To run with the development version of chaudio, prepend the PYTHONPATH environment.

PYTHONPATH=$PWD python3 examples/{FILE}

Or, if chaudio is installed, just run:

python3 examples/{FILE}

#### examples/simple.py

This creates a WAV file (simple.wav) that contains 5 seconds of the note A4 as a sin waveform.

#### examples/addnoise.py

This takes an input, and an optional output (default is addnoise.wav).

It reads in a file, adds static, then outputs the result to output.

Run like python3 examples/addnoise.py simple.wav -o simple_static.wav (assuming you’ve ran examples/simple.py).

#### examples/arrange.py

This example shows how to create an entire song, efficiently and rubustly. The result is arranged.wav

## Installation

You need either version of python (2 and 3 work, 3 is recommended), as well as numpy, scipy, and simpleaudio.

You can easily install with pip:

either pip install chaudio, or, for python3, pip3 install chaudio

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

chaudio-0.0.8.tar.gz (176.0 kB view details)

Uploaded Source

Built Distribution

chaudio-0.0.8-py3-none-any.whl (324.6 kB view details)

Uploaded Python 3

File details

Details for the file chaudio-0.0.8.tar.gz.

File metadata

  • Download URL: chaudio-0.0.8.tar.gz
  • Upload date:
  • Size: 176.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for chaudio-0.0.8.tar.gz
Algorithm Hash digest
SHA256 d07846d6cd6b47be5fd438a8caedff4f872e9bb9c4e780945405bdf31ae20afb
MD5 6db19d44ab2bf970fb595179034ce0ba
BLAKE2b-256 74741b45163b66e8b4167df447a9af624ff4d127e722695a6f3f414259963639

See more details on using hashes here.

Provenance

File details

Details for the file chaudio-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for chaudio-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b063f62a579c13ddece44d55dd2d10f4ff99e1bd7af3f8dc6bd8eee6dcb036cd
MD5 24821b15f300a315b1ce6dbae3f7399f
BLAKE2b-256 c81015c3cd4bf5b585dcead9e18d3050c002a88a90d8de981e3b1e04e47439a2

See more details on using hashes here.

Provenance

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