A lightweight Python module to control the SuperCollider audio synthesis engine.
To install the client library:
pip3 install supercolliderBefore 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.
This library is made available under the terms of the MIT license.
- Thanks to Itaborala for porting from liblo to python-osc