Skip to main content

Python implementation of the music programming language Chuck.

Project description

PyChucK

Installation

pip install pychuck

Usage

# demo.py
from pychuck import *


# Custom UGen
class Noise(UGen):
    def _tick(self, samples: int) -> np.ndarray:
        return np.random.uniform(-1, 1, samples)


# Graph
n = Noise()
n >> dac

# Main loop
while True:
    # Adjust Parameters
    n.gain = np.random.uniform(0, 1)
    # Time Control
    200 * ms >> now
# pychuck --help
pychuck demo.py

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

pychuck-0.0.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

pychuck-0.0.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

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