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
Release history Release notifications | RSS feed
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.0.tar.gz
(6.6 kB
view hashes)