Skip to main content

Python implementation of music programming language Chuck

Project description

PyChucK

Installation

pip install pychuck

Quickstart

# demo.py
from pychuck import *


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


# unit
n = Noise(gain=0.5)

# graph
n >> dac

# main loop
while True:
    # parameter
    n.gain = np.random.uniform(0, 1)
    # time
    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-1.0.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

pychuck-1.0.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pychuck-1.0.1.tar.gz.

File metadata

  • Download URL: pychuck-1.0.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pychuck-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8c13ba4e93f89f943c302e3701c4a6e56396a1eba30c554aa2f334bf1ca5d435
MD5 a5c71ac79e033a3523977abaddf1188f
BLAKE2b-256 8ab85e171db68a381f1467c9a9d18dd8c9158c97a57403039b82619072490475

See more details on using hashes here.

File details

Details for the file pychuck-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pychuck-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pychuck-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a1a5cef8bc10056c36bdcdb7868c6defcf88cf520136fe985b1f64fe379983
MD5 0f23f8a2108d001124398d6a8edc6afa
BLAKE2b-256 0eb9f468499a2d2b4ff1509ce4e37d32aaabfa9a4217860474a9c82c615b48fb

See more details on using hashes here.

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