Skip to main content

SuperCollider library for Python

Project description

PyPI Documentation Status PyPI - Python Version

SuperCollider library for Python

This project is a port of core features of SuperCollider's language to Python 3. It is intended to be the same library in a different language and to keep sclang elegance in a pythonic way (if possible).

The main reason for this port is Python's capacity of interaction with other libraries applicable to composition, sonic-art and research. My wish is for this project to be useful for the SuperCollider community.

Note that this project is still under development and there are missing parts, bugs you are welcome to report, and documentation is under construction. The best way to learn about SuperCollider is going to the source.


The idea is that you can write the same in Python as in sclang, with the same logic regarding multichannel expansion, arguments conversion to Control ugens, etc., it should be the same result. For example:

from sc3.all import *


def sine(freq=440, amp=0.1, gate=1):
    sig = SinOsc(freq) * amp
    env = EnvGen(Env.adsr(), gate, done_action=2)
    Out(0, (sig * env).dup())


Wait for boot...

n = Synth('sine')
n.set('amp', 0.05)
n.set('freq', 550)
# s.free_all()  # If something went wrong free all nodes.
s.quit()  # Stop server at the end of interactive session or just quit ipython.


From PyPI (usually outdated by now):

pip3 install sc3

From source in develop mode (recommended for the moment):

python3 develop --user


The sc3 library holds the same license as SuperCollider: sc3 is free software available under Version 3 of the GNU General Public License. See COPYING for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sc3, version 1.0.0a3
Filename, size File type Python version Upload date Hashes
Filename, size sc3-1.0.0a3-py3.6.egg (510.4 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size sc3-1.0.0a3-py3.7.egg (511.2 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size sc3-1.0.0a3-py3.8.egg (513.6 kB) File type Egg Python version 3.8 Upload date Hashes View
Filename, size sc3-1.0.0a3-py3.9.egg (513.3 kB) File type Egg Python version 3.9 Upload date Hashes View
Filename, size sc3-1.0.0a3-py3-none-any.whl (218.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sc3-1.0.0a3.tar.gz (175.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page