Skip to main content

Python client for SuperCollider

A lightweight Python module to control the SuperCollider audio synthesis engine.

Installation

To install the client library:

pip3 install supercollider

Usage

Before using the library, start the SuperCollider server, either through the SuperCollider GUI or with scsynth -u 57110.

Within the SC client, create the below SynthDef:

SynthDef(\sine, { |out = 0, freq = 440.0, gain = 0.0|
    Out.ar(out, SinOsc.ar(freq) * gain.dbamp);
}).store;

From Python, you can now create and trigger Synths:

from supercollider import Server, Synth

server = Server()

synth = Synth(server, "sine", { "freq" : 440.0, "gain" : -12.0 })
synth.set("freq", 880.0)

For further examples, see examples.

License

This library is made available under the terms of the MIT license.

Contributors

  • Thanks to Itaborala for porting from liblo to python-osc

See also

  • If you want a more comprehensive framework that lets you construct and compile SynthDefs from Python, take a look at Supriya.
  • For an excellent Python + SuperCollider live coding environment, check out FoxDot

Metadata

Release files for supercollider 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supercollider 0.0.6
File Size Uploaded Provenance Actions
supercollider-0.0.6.tar.gz 11.1 kB Without provenance Details for supercollider-0.0.6.tar.gz

Release files / supercollider-0.0.6.tar.gz

Download URL supercollider-0.0.6.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7e0be449e44feec3573ecffc1c787c7744e8e12a5254874e2f14acb58a5fac61
BLAKE2b-256 checksum
How to use checksums
1735d2021a981d44211028118f0d64ec15cf49a72f16878c26280468b72761ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for supercollider 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page