Skip to main content

# 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

Release files for chaudio 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chaudio 0.0.8
File Size Uploaded
chaudio-0.0.8.tar.gz 176.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chaudio 0.0.8
File Interpreter ABI Platform
chaudio-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 500.6 kB

Release files / chaudio-0.0.8.tar.gz

Download URL chaudio-0.0.8.tar.gz
Size 176.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d07846d6cd6b47be5fd438a8caedff4f872e9bb9c4e780945405bdf31ae20afb
BLAKE2b-256 checksum
How to use checksums
74741b45163b66e8b4167df447a9af624ff4d127e722695a6f3f414259963639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / chaudio-0.0.8-py3-none-any.whl

Download URL chaudio-0.0.8-py3-none-any.whl
Size 324.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b063f62a579c13ddece44d55dd2d10f4ff99e1bd7af3f8dc6bd8eee6dcb036cd
BLAKE2b-256 checksum
How to use checksums
c81015c3cd4bf5b585dcead9e18d3050c002a88a90d8de981e3b1e04e47439a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

1 release file

0.0.4.1

1 release file

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page