From d56b18138e5da5ab059f2ec16440199faec22f3e Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 15 Oct 2019 13:04:04 +0100 Subject: [PATCH] Expand README with Linux deps and fuller example --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d1a104..0d305c4 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ A lightweight Python module to control the [SuperCollider](https://supercollider The `liblo` library is required for the underlying OSC communications. ``` -brew install liblo # macOS -apt-get install liblo7 # Linux +brew install liblo # macOS +apt-get install liblo7 liblo-dev # Linux ``` Install the Python package: @@ -19,6 +19,18 @@ 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: + ```python from supercollider import Server, Synth