Skip to main content

Interact with the SuperCollider audio synthesis engine

Project description

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

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

supercollider-0.0.6.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file supercollider-0.0.6.tar.gz.

File metadata

  • Download URL: supercollider-0.0.6.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for supercollider-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7e0be449e44feec3573ecffc1c787c7744e8e12a5254874e2f14acb58a5fac61
MD5 9bbb60e0df0e977d7cb24b8feda72077
BLAKE2b-256 1735d2021a981d44211028118f0d64ec15cf49a72f16878c26280468b72761ee

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