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

## Usage

### 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/compose.py

This example shows how to create an entire song, efficiently and rubustly.

## Installation

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

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.2.tar.gz (5.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for chaudio-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d0ed61bc12527b6d95608c2c6248e1230937b113ce12d5e26590498ed8e8d356
MD5 7e81419dd9a4aab892183b6e5d60d422
BLAKE2b-256 2e2760bf5c6b02e3ad360620bf251d13ef1e8b9636fc69afd823c9b4f2c74cda

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